Skip to content

Commit

Permalink
change the sign of NaNs
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Sep 23, 2018
1 parent 7c58037 commit 1bedb36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BitFloats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ typemin( ::Type{Float128}) = -Inf128
typemax( ::Type{Float128}) = Inf128

const Inf80 = reinterpret(Float80, 0x7fff_8000_0000_0000_0000 % UInt80)
const NaN80 = reinterpret(Float80, 0xffff_c000_0000_0000_0000 % UInt80)
const NaN80 = reinterpret(Float80, 0x7fff_c000_0000_0000_0000 % UInt80)

const Inf128 = reinterpret(Float128, 0x7fff_0000_0000_0000_0000_0000_0000_0000)
const NaN128 = reinterpret(Float128, 0xffff_8000_0000_0000_0000_0000_0000_0000)
const NaN128 = reinterpret(Float128, 0x7fff_8000_0000_0000_0000_0000_0000_0000)

precision(::Type{Float80}) = 64
precision(::Type{Float128}) = 113
Expand Down

0 comments on commit 1bedb36

Please sign in to comment.