aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Naylor <john.naylor@postgresql.org>2024-03-06 15:54:25 +0700
committerJohn Naylor <john.naylor@postgresql.org>2024-03-06 15:55:55 +0700
commitde7c6fe8347ab726c80ebbfcdb57f4b714d5243d (patch)
tree33f08d16d3e61a19f75cbf02b7915771c8fc55eb /src
parenteae7be600be715b2f393b018fc4b98c5b89296da (diff)
downloadpostgresql-de7c6fe8347ab726c80ebbfcdb57f4b714d5243d.tar.gz
postgresql-de7c6fe8347ab726c80ebbfcdb57f4b714d5243d.zip
Fix signedness error in 9f225e992 for gcc
The first argument of vshrq_n_s8 needs to be a signed vector type, but it was passed unsigned. Clang is more lax with conversion, but gcc needs a cast. Fix by me, tested by Masahiko Sawada Per buildfarm members splitfin, batta, widowbird, snakefly, parula, massasauga Discussion: https://postgr.es/m/20240306074106.mg6w4koohdlworbs%40alap3.anarazel.de
Diffstat (limited to 'src')
-rw-r--r--src/include/port/simd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/port/simd.h b/src/include/port/simd.h
index 326b4faff51..597496f2fb7 100644
--- a/src/include/port/simd.h
+++ b/src/include/port/simd.h
@@ -323,7 +323,7 @@ vector8_highbit_mask(const Vector8 v)
1 << 4, 1 << 5, 1 << 6, 1 << 7,
};
- uint8x16_t masked = vandq_u8(vld1q_u8(mask), (uint8x16_t) vshrq_n_s8(v, 7));
+ uint8x16_t masked = vandq_u8(vld1q_u8(mask), (uint8x16_t) vshrq_n_s8((int8x16_t) v, 7));
uint8x16_t maskedhi = vextq_u8(masked, masked, 8);
return (uint32) vaddvq_u16((uint16x8_t) vzip1q_u8(masked, maskedhi));