commit 71155100ac5dd4855db7f2643f3c8f3ec7a81642
parent 52e3c3395ad7c58d4a02c0a0c2dc54b15b669920
Author: [email protected] <[email protected]>
Date: Mon, 25 Jul 2016 14:27:08 +0300
ARM NEON: abs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/kfr/base/abs.hpp b/include/kfr/base/abs.hpp
@@ -72,7 +72,7 @@ KFR_SINTRIN vec<T, N> abs(vec<T, N> a)
template <typename T, size_t N, KFR_ENABLE_IF(!is_f_class<T>::value)>
KFR_SINTRIN vec<T, N> abs(vec<T, N> x)
{
- return select(value >= T(), value, -value);
+ return select(x >= T(), x, -x);
}
#endif
KFR_HANDLE_SCALAR_1(abs)