Skip to content

Commit

Permalink
Merge pull request #961 from SciML/ChrisRackauckas-patch-6
Browse files Browse the repository at this point in the history
Future-safe the fastpow
  • Loading branch information
ChrisRackauckas authored Nov 4, 2023
2 parents 00d076d + fb60a7f commit 0532345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fastpow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0532345

Please sign in to comment.