diff --git a/Kernel/LHCbMath/include/LHCbMath/SIMDWrapper.h b/Kernel/LHCbMath/include/LHCbMath/SIMDWrapper.h index a79f20d99d2f1604ba43813a54a9c901f5542ecd..432e75ba992f9eff87f0c8339e4c4f3ce23c824c 100644 --- a/Kernel/LHCbMath/include/LHCbMath/SIMDWrapper.h +++ b/Kernel/LHCbMath/include/LHCbMath/SIMDWrapper.h @@ -2732,10 +2732,10 @@ inline auto atan_approx( T x ) { inline auto faster_atan2( float y, float x ) { // adapted from https://mazzo.li/posts/vectorized-atan2.html const bool swap = abs( x ) < abs( y ); - T atan_input = swap ? x/y : y/x; - T res = atan_approx( atan_input ); - T PI_2 = M_PI_2; - T PI = M_PI; + float atan_input = swap ? x/y : y/x; + float res = atan_approx( atan_input ); + float PI_2 = M_PI_2; + float PI = M_PI; res = swap ? std::copysign( PI_2, atan_input ) - res : res; return x < 0 ? std::copysign( PI, y ) + res : res; }