diff options
author | Marat Dukhan <maratek@google.com> | 2019-12-26 22:20:57 +0300 |
---|---|---|
committer | Marat Dukhan <maratek@google.com> | 2019-12-26 22:20:57 +0300 |
commit | 56620a902da98220b119bc4486958ff2714b6823 (patch) | |
tree | 1173f1712621da81f8310aa6bc8cb6efd0a2e19b /include | |
parent | 8fd2884b88848180904a40c452a362d1ee429ad5 (diff) | |
download | psimd-56620a902da98220b119bc4486958ff2714b6823.tar.gz |
Fix bug in psimd_abs_f32
Diffstat (limited to 'include')
-rw-r--r-- | include/psimd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/psimd.h b/include/psimd.h index 405eb54..c7b6eeb 100644 --- a/include/psimd.h +++ b/include/psimd.h @@ -787,7 +787,7 @@ /* Vector absolute value */ PSIMD_INTRINSIC psimd_f32 psimd_abs_f32(psimd_f32 v) { const psimd_s32 mask = (psimd_s32) psimd_splat_f32(-0.0f); - return (psimd_f32) ((psimd_s32) v & mask); + return (psimd_f32) ((psimd_s32) v & ~mask); } /* Vector negation */ |