From 09f015852bac3c28849aa9bbcf0e3cc1c2fb6808 Mon Sep 17 00:00:00 2001 From: David Tellenbach Date: Thu, 29 Oct 2020 07:28:28 +0100 Subject: Replace numext::as_uint with numext::bit_cast --- Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h') diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index 37b424ebf..6d92d1c72 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -461,7 +461,7 @@ inline float trig_reduce_huge (float xf, int *quadrant) 0x10e41000, 0xe4100000 }; - uint32_t xi = numext::as_uint(xf); + uint32_t xi = numext::bit_cast(xf); // Below, -118 = -126 + 8. // -126 is to get the exponent, // +8 is to enable alignment of 2/pi's bits on 8 bits. -- cgit v1.2.3