mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fix compilation for SIMDe
This commit is contained in:
parent
23aeaecf53
commit
f5e508b13f
@ -180,7 +180,7 @@ m128 load_m128_from_u64a(const u64a *p) {
|
||||
|
||||
static really_inline
|
||||
m128 rshiftbyte_m128(const m128 a, int count_immed) {
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P) && !defined(VS_SIMDE_BACKEND)
|
||||
if (__builtin_constant_p(count_immed)) {
|
||||
return _mm_srli_si128(a, count_immed);
|
||||
}
|
||||
@ -211,7 +211,7 @@ m128 rshiftbyte_m128(const m128 a, int count_immed) {
|
||||
|
||||
static really_inline
|
||||
m128 lshiftbyte_m128(const m128 a, int count_immed) {
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P) && !defined(VS_SIMDE_BACKEND)
|
||||
if (__builtin_constant_p(count_immed)) {
|
||||
return _mm_slli_si128(a, count_immed);
|
||||
}
|
||||
|
@ -376,7 +376,7 @@ really_inline SuperVector<16> SuperVector<16>::vshl_64 (uint8_t const N) const
|
||||
template <>
|
||||
really_inline SuperVector<16> SuperVector<16>::vshl_128(uint8_t const N) const
|
||||
{
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P) && !defined(VS_SIMDE_BACKEND)
|
||||
if (__builtin_constant_p(N)) {
|
||||
return {_mm_slli_si128(u.v128[0], N)};
|
||||
}
|
||||
@ -451,7 +451,7 @@ really_inline SuperVector<16> SuperVector<16>::vshr_64 (uint8_t const N) const
|
||||
template <>
|
||||
really_inline SuperVector<16> SuperVector<16>::vshr_128(uint8_t const N) const
|
||||
{
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P) && !defined(VS_SIMDE_BACKEND)
|
||||
if (__builtin_constant_p(N)) {
|
||||
return {_mm_srli_si128(u.v128[0], N)};
|
||||
}
|
||||
@ -472,7 +472,7 @@ really_inline SuperVector<16> SuperVector<16>::vshr(uint8_t const N) const
|
||||
template <>
|
||||
really_inline SuperVector<16> SuperVector<16>::operator>>(uint8_t const N) const
|
||||
{
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P) && !defined(VS_SIMDE_BACKEND)
|
||||
if (__builtin_constant_p(N)) {
|
||||
return {_mm_srli_si128(u.v128[0], N)};
|
||||
}
|
||||
@ -483,7 +483,7 @@ really_inline SuperVector<16> SuperVector<16>::operator>>(uint8_t const N) const
|
||||
template <>
|
||||
really_inline SuperVector<16> SuperVector<16>::operator<<(uint8_t const N) const
|
||||
{
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
||||
#if defined(HAVE__BUILTIN_CONSTANT_P) && !defined(VS_SIMDE_BACKEND)
|
||||
if (__builtin_constant_p(N)) {
|
||||
return {_mm_slli_si128(u.v128[0], N)};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user