Replace numext::as_uint with numext::bit_cast<numext::uint32_t>

This commit is contained in:
David Tellenbach
2020-10-29 07:28:28 +01:00
parent e265f7ed8e
commit 09f015852b
3 changed files with 5 additions and 8 deletions

View File

@@ -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.