mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 13:30:33 +00:00
Remove deprecated math.c_frexp (#19518)
* Remove Deprecated math proc * Remove Deprecated math proc * Remove Deprecated math proc
This commit is contained in:
@@ -44,6 +44,9 @@ becomes an alias for `addr`.
|
||||
|
||||
- Changed mimedb to use an `OrderedTable` instead of `OrderedTableRef`, to use it in a const.
|
||||
|
||||
- Removed deprecated `math.c_frexp`.
|
||||
|
||||
|
||||
## Language changes
|
||||
|
||||
- Pragma macros on type definitions can now return `nnkTypeSection` nodes as well as `nnkTypeDef`,
|
||||
|
||||
@@ -69,11 +69,6 @@ when defined(c) or defined(cpp):
|
||||
|
||||
proc c_signbit(x: SomeFloat): cint {.importc: "signbit", header: "<math.h>".}
|
||||
|
||||
func c_frexp*(x: cfloat, exponent: var cint): cfloat {.
|
||||
importc: "frexpf", header: "<math.h>", deprecated: "Use `frexp` instead".}
|
||||
func c_frexp*(x: cdouble, exponent: var cint): cdouble {.
|
||||
importc: "frexp", header: "<math.h>", deprecated: "Use `frexp` instead".}
|
||||
|
||||
# don't export `c_frexp` in the future and remove `c_frexp2`.
|
||||
func c_frexp2(x: cfloat, exponent: var cint): cfloat {.
|
||||
importc: "frexpf", header: "<math.h>".}
|
||||
|
||||
@@ -437,12 +437,6 @@ template main() =
|
||||
doAssert lgamma(-0.0) == Inf
|
||||
doAssert lgamma(-1.0) == Inf
|
||||
|
||||
when nimvm: discard
|
||||
else:
|
||||
var exponent: cint
|
||||
doAssert c_frexp(0.0, exponent) == 0.0
|
||||
doAssert c_frexp(-0.0, exponent) == -0.0
|
||||
doAssert classify(c_frexp(-0.0, exponent)) == fcNegZero
|
||||
|
||||
static: main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user