diff options
author | Marat Dukhan <maratek@google.com> | 2019-12-26 22:22:39 +0300 |
---|---|---|
committer | Marat Dukhan <maratek@google.com> | 2019-12-26 22:22:39 +0300 |
commit | 10b4ffc6ea9e2e11668f86969586f88bc82aaefa (patch) | |
tree | 501221393d93af82d9de77e0fe8e12da27df6d69 /include | |
parent | 56620a902da98220b119bc4486958ff2714b6823 (diff) | |
download | psimd-10b4ffc6ea9e2e11668f86969586f88bc82aaefa.tar.gz |
psimd_andnotmask_f32 function
Diffstat (limited to 'include')
-rw-r--r-- | include/psimd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/psimd.h b/include/psimd.h index c7b6eeb..1aa1014 100644 --- a/include/psimd.h +++ b/include/psimd.h @@ -683,6 +683,11 @@ return (psimd_f32) (mask & (psimd_s32) v); } + /* Vector and-not */ + PSIMD_INTRINSIC psimd_f32 psimd_andnotmask_f32(psimd_s32 mask, psimd_f32 v) { + return (psimd_f32) (~mask & (psimd_s32) v); + } + /* Vector blend */ PSIMD_INTRINSIC psimd_s8 psimd_blend_s8(psimd_s8 mask, psimd_s8 a, psimd_s8 b) { #if defined(__ARM_NEON__) || defined(__ARM_NEON) |