aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-11-27 22:57:30 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-11-27 22:57:30 +0100
commita1a5fbbd212fb962d2bcc1533ae09037ee4177a1 (patch)
tree255cbb0f39073294cd2bb521e7869ec416cc7fc8 /Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
parentfa7fd61edad765608beb629a2c6f656535188db6 (diff)
Update pshiftleft to pass the shift as a true compile-time integer.
Diffstat (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h')
-rw-r--r--Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
index 5719d7f91..067d1dbe0 100644
--- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
+++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h
@@ -270,7 +270,7 @@ Packet psin_float(const Packet& _x)
// Compute the sign to apply to the polynomial.
// sign = third_bit(y_int1) xor signbit(_x)
- Packet sign_bit = pxor(_x, preinterpret<Packet>(pshiftleft(y_int1, 29)));
+ Packet sign_bit = pxor(_x, preinterpret<Packet>(pshiftleft<29>(y_int1)));
sign_bit = pand(sign_bit, cst_sign_mask); // clear all but left most bit
// Get the polynomial selection mask from the second bit of y_int1