NaN fixes for clang backend (#9652)
This commit is contained in:
parent
3cf3c2d722
commit
6a57ec6d2e
2 changed files with 4 additions and 9 deletions
|
|
@ -2041,11 +2041,11 @@ proc getRefcount*[T](x: seq[T]): int {.importc: "getRefcount", noSideEffect,
|
|||
|
||||
|
||||
const
|
||||
Inf* {.magic: "Inf".} = 1.0 / 0.0
|
||||
Inf* = 0x7FF0000000000000'f64
|
||||
## contains the IEEE floating point value of positive infinity.
|
||||
NegInf* {.magic: "NegInf".} = -Inf
|
||||
NegInf* = 0xFFF0000000000000'f64
|
||||
## contains the IEEE floating point value of negative infinity.
|
||||
NaN* {.magic: "NaN".} = 0.0 / 0.0
|
||||
NaN* = 0x7FF7FFFFFFFFFFFF'f64
|
||||
## contains an IEEE floating point value of *Not A Number*. Note
|
||||
## that you cannot compare a floating point value to this value
|
||||
## and expect a reasonable result - use the `classify` procedure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue