From fb60a7f8f2dc8e9680d408a56f82b1d2d165e1bd Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 4 Nov 2023 13:47:33 -0400 Subject: [PATCH] Future-safe the fastpow Future proofs for https://github.com/JuliaLang/JuliaSyntax.jl/issues/378 --- src/fastpow.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fastpow.jl b/src/fastpow.jl index 5eeaff851..c70fa888d 100644 --- a/src/fastpow.jl +++ b/src/fastpow.jl @@ -56,10 +56,10 @@ const EXP2FT = (Float32(0x1.6a09e667f3bcdp-1), TBLSIZE = UInt32(1 << TBLBITS) redux = Float32(0x1.8p23f) / TBLSIZE - P1 = Float32(0x1.62e430p-1f) - P2 = Float32(0x1.ebfbe0p-3f) - P3 = Float32(0x1.c6b348p-5f) - P4 = Float32(0x1.3b2c9cp-7f) + P1 = Float32(0x1.62e430p-1) + P2 = Float32(0x1.ebfbe0p-3) + P3 = Float32(0x1.c6b348p-5) + P4 = Float32(0x1.3b2c9cp-7) # Reduce x, computing z, i0, and k. t::Float32 = x + redux