aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/sse
diff options
context:
space:
mode:
authorlurid <lurid@yandex-team.com>2023-04-28 11:43:56 +0300
committerlurid <lurid@yandex-team.com>2023-04-28 11:43:56 +0300
commit2f4b8b4083ec7b5ea9c036b1c8fb64b6d1f16058 (patch)
treef37e42896edf6ab3e2c365f967e892c8d2378fc7 /library/cpp/sse
parent308381cdba278cabafdc3fb89f7b73d6f35f8276 (diff)
downloadydb-2f4b8b4083ec7b5ea9c036b1c8fb64b6d1f16058.tar.gz
Fix library -Wdeprecate-lax-vec-conv-all
Diffstat (limited to 'library/cpp/sse')
-rw-r--r--library/cpp/sse/powerpc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/sse/powerpc.h b/library/cpp/sse/powerpc.h
index 82fc011fa5..10c5f6a0da 100644
--- a/library/cpp/sse/powerpc.h
+++ b/library/cpp/sse/powerpc.h
@@ -82,7 +82,7 @@ Y_FORCE_INLINE __m128 _mm_load_ps(const float* p) {
return (__m128)vec_ld(0, (vector float*)p);
}
-Y_FORCE_INLINE __m128 _mm_loadu_pd(const double* d) {
+Y_FORCE_INLINE __m128d _mm_loadu_pd(const double* d) {
return vec_vsx_ld(0, d);
}
@@ -485,7 +485,7 @@ Y_FORCE_INLINE __m128i _mm_srli_epi16(__m128i a, int count) {
/* The PowerPC Architecture says all shift count fields must contain the same shift count. */
__v8hi replicated_count;
replicated_count = vec_splats((short)count);
- return (__m128i)vec_sr((vector signed short)a, replicated_count);
+ return (__m128i)vec_sr((vector signed short)a, (vector unsigned short)replicated_count);
}
}
@@ -499,7 +499,7 @@ Y_FORCE_INLINE __m128i _mm_srli_epi32(__m128i a, int count) {
/* The PowerPC Architecture says all shift count fields must contain the same shift count. */
__v4si replicated_count;
replicated_count = vec_splats(count);
- return (__m128i)vec_sr((vector signed int)a, replicated_count);
+ return (__m128i)vec_sr((vector signed int)a, (vector unsigned int)replicated_count);
}
}
@@ -621,7 +621,7 @@ Y_FORCE_INLINE __m128i _mm_sll_epi64(__m128i a, __m128i count) {
lshift = (__v2du)vec_splat((__v2du)count, 0);
shmask = vec_cmplt(lshift, shmax);
result = vec_sl((__v2du)a, lshift);
- result = ((vector long long)shmask & ~(vector long long)shmask) | ((vector long long)result & (vector long long)shmask);
+ result = (__v2du)(((vector long long)shmask & ~(vector long long)shmask) | ((vector long long)result & (vector long long)shmask));
return (__m128i)result;
}
@@ -750,7 +750,7 @@ Y_FORCE_INLINE __m128i _mm_sub_epi64(__m128i a, __m128i b) {
return (__m128i)((__v2du)a - (__v2du)b);
}
-Y_FORCE_INLINE __m128i _mm_mul_epu32(__m128i a, __m128 b) {
+Y_FORCE_INLINE __m128i _mm_mul_epu32(__m128i a, __m128i b) {
#ifdef __LITTLE_ENDIAN__
return (__m128i)vec_mule((__v4su)a, (__v4su)b);
#elif __BIG_ENDIAN__
@@ -906,7 +906,7 @@ Y_FORCE_INLINE __m128i _mm_cmpgt_epi32(__m128i a, __m128i b) {
}
Y_FORCE_INLINE __m128i _mm_cmpgt_epi64(__m128i a, __m128i b) {
- return vec_cmpgt((vector signed long long)a, (vector signed long long)b);
+ return (__m128i)vec_cmpgt((vector signed long long)a, (vector signed long long)b);
}
Y_FORCE_INLINE __m128i _mm_cmplt_epi8(__m128i a, __m128i b) {
@@ -922,7 +922,7 @@ Y_FORCE_INLINE __m128i _mm_cmplt_epi32(__m128i a, __m128i b) {
}
Y_FORCE_INLINE __m128i _mm_cmplt_epi64(__m128i a, __m128i b) {
- return vec_cmplt((vector signed long long)a, (vector signed long long)b);
+ return (__m128i)vec_cmplt((vector signed long long)a, (vector signed long long)b);
}
Y_FORCE_INLINE __m128i _mm_sad_epu8(__m128i A, __m128i B) {