[simd] Remove some intrinsics dependencies

Not sure why I used intrinsics at the time. Probably wasn't comfortable
getting gcc to do what I wanted.
This commit is contained in:
Bill Currie 2021-12-26 12:50:46 +09:00
parent c11a930436
commit e062163aa4
1 changed files with 0 additions and 8 deletions

View File

@ -110,11 +110,7 @@ vabsf (vec4f_t v)
{ {
const uint32_t nan = ~0u >> 1; const uint32_t nan = ~0u >> 1;
const vec4i_t abs = { nan, nan, nan, nan }; const vec4i_t abs = { nan, nan, nan, nan };
#ifndef __SSE__
return (vec4f_t) ((vec4i_t) v & abs); return (vec4f_t) ((vec4i_t) v & abs);
#else
return _mm_and_ps (v, (__m128) abs);
#endif
} }
#ifndef IMPLEMENT_VEC4F_Funcs #ifndef IMPLEMENT_VEC4F_Funcs
@ -319,11 +315,7 @@ vec4f_t
qconjf (vec4f_t q) qconjf (vec4f_t q)
{ {
const vec4i_t neg = { 1u << 31, 1u << 31, 1u << 31, 0 }; const vec4i_t neg = { 1u << 31, 1u << 31, 1u << 31, 0 };
#ifndef __SSE__
return (vec4f_t) ((vec4i_t) q ^ neg); return (vec4f_t) ((vec4i_t) q ^ neg);
#else
return _mm_xor_ps (q, (__m128) neg);
#endif
} }
#ifndef IMPLEMENT_VEC4F_Funcs #ifndef IMPLEMENT_VEC4F_Funcs