diff options
author | David Tellenbach <david.tellenbach@me.com> | 2020-10-29 07:28:28 +0100 |
---|---|---|
committer | David Tellenbach <david.tellenbach@me.com> | 2020-10-29 07:28:28 +0100 |
commit | 09f015852bac3c28849aa9bbcf0e3cc1c2fb6808 (patch) | |
tree | c1bc9c99ec60db40cc6f3052af57605af33a9b51 /Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | |
parent | e265f7ed8e59c26e15f2c35162c6b8da1c5d594f (diff) |
Replace numext::as_uint with numext::bit_cast<numext::uint32_t>
Diffstat (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h')
-rw-r--r-- | Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 2 |
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 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<uint32_t>(xf); // Below, -118 = -126 + 8. // -126 is to get the exponent, // +8 is to enable alignment of 2/pi's bits on 8 bits. |