mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
removed negz constants for consistency
This commit is contained in:
parent
992c83933d
commit
56903fc707
6 changed files with 16 additions and 24 deletions
5
neon.hh
5
neon.hh
|
|
@ -526,10 +526,9 @@ template <>
|
|||
inline SIMD<float, 4> vcopysign(SIMD<float, 4> a, SIMD<float, 4> b)
|
||||
{
|
||||
SIMD<float, 4> tmp;
|
||||
uint32x4_t negz = (uint32x4_t)vdupq_n_f32(-0.f);
|
||||
tmp.m = (float32x4_t)vorrq_u32(
|
||||
vbicq_u32((uint32x4_t)a.m, negz),
|
||||
vandq_u32((uint32x4_t)b.m, negz));
|
||||
vbicq_u32((uint32x4_t)a.m, (uint32x4_t)vdupq_n_f32(-0.f)),
|
||||
vandq_u32((uint32x4_t)b.m, (uint32x4_t)vdupq_n_f32(-0.f)));
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue