mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-19 02:30:35 +03:00
clang 15 (but not 16) fails on ppc64le with -Wdeprecate-lax-vec-conv-all
This commit is contained in:
@@ -43,6 +43,9 @@
|
||||
|
||||
#include <string.h> // for memcpy
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecate-lax-vec-conv-all"
|
||||
|
||||
typedef __vector unsigned long long int uint64x2_t;
|
||||
typedef __vector signed long long int int64x2_t;
|
||||
typedef __vector unsigned int uint32x4_t;
|
||||
@@ -124,8 +127,8 @@ static really_really_inline
|
||||
m128 rshift_m128(m128 a, unsigned b) {
|
||||
if (b == 0) return a;
|
||||
m128 sl = (m128) vec_splats((uint8_t) b << 3);
|
||||
m128 result = (m128) vec_sro((uint8x16_t) a, (uint8x16_t) sl);
|
||||
return result;
|
||||
uint8x16_t result = vec_sro((uint8x16_t) a, (uint8x16_t) sl);
|
||||
return (m128) result;
|
||||
}
|
||||
|
||||
static really_really_inline
|
||||
@@ -420,4 +423,6 @@ m128 set2x64(u64a hi, u64a lo) {
|
||||
return (m128) v;
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#endif // ARCH_PPC64EL_SIMD_UTILS_H
|
||||
|
||||
Reference in New Issue
Block a user