mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
use the conditional in the right way
This commit is contained in:
parent
354fda48fb
commit
2e88df1a89
@ -46,6 +46,7 @@
|
||||
#if defined(__clang__) && (__clang_major__ == 15)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecate-lax-vec-conv-all"
|
||||
#endif // defined(__clang__) && (__clang_major__ == 15)
|
||||
|
||||
typedef __vector unsigned long long int uint64x2_t;
|
||||
typedef __vector signed long long int int64x2_t;
|
||||
@ -424,6 +425,7 @@ m128 set2x64(u64a hi, u64a lo) {
|
||||
return (m128) v;
|
||||
}
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ == 15)
|
||||
#pragma clang diagnostic pop
|
||||
#endif // defined(__clang__) && (__clang_major__ == 15)
|
||||
|
||||
|
@ -161,12 +161,14 @@ really_inline SuperVector<16>::SuperVector(uint32_t const other)
|
||||
#if defined(__clang__) && (__clang_major__ == 15)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecate-lax-vec-conv-all"
|
||||
#endif // defined(__clang__) && (__clang_major__ == 15)
|
||||
template<>
|
||||
template<>
|
||||
really_inline SuperVector<16>::SuperVector(int64_t const other)
|
||||
{
|
||||
u.s64x2[0] = static_cast<int64x2_t>(vec_splats(static_cast<ulong64_t>(other)));
|
||||
}
|
||||
#if defined(__clang__) && (__clang_major__ == 15)
|
||||
#pragma clang diagnostic pop
|
||||
#endif // defined(__clang__) && (__clang_major__ == 15)
|
||||
|
||||
|
@ -676,8 +676,10 @@ TEST(SimdUtilsTest, movq) {
|
||||
#if defined(__clang__) && (__clang_major__ == 15)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecate-lax-vec-conv-all"
|
||||
#endif // defined(__clang__) && (__clang_major__ == 15)
|
||||
int64x2_t a = {0x123456789abcdefLL, ~0LL };
|
||||
simd = static_cast<m128>(a);
|
||||
#if defined(__clang__) && (__clang_major__ == 15)
|
||||
#pragma clang diagnostic pop
|
||||
#endif // defined(__clang__) && (__clang_major__ == 15)
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user