Skip to content

Commit

Permalink
Merge pull request #4 from EOSIO/float64-infinity-representation-fix
Browse files Browse the repository at this point in the history
correct binary representations of +/- infinity for float64_t
  • Loading branch information
arhag authored Nov 9, 2018
2 parents ff09387 + f75eab0 commit 203b6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/include/softfloat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ inline float32_t f32_positive_infinity() {
return {0x7f800000ul};
}
inline float64_t f64_negative_infinity() {
return {0xff00000000000000ull};
return {0xfff0000000000000ull};
}
inline float64_t f64_positive_infinity() {
return {0x7f00000000000000ull};
return {0x7ff0000000000000ull};
}
inline float128_t f128_negative_infinity() {
return {{0x0ull, 0xffff000000000000ull}};
Expand Down

0 comments on commit 203b6df

Please sign in to comment.