Remove deprecated math.c_frexp (#19518)

* Remove Deprecated math proc

* Remove Deprecated math proc

* Remove Deprecated math proc
This commit is contained in:
Juan Carlos
2022-02-14 05:35:33 -08:00
committed by GitHub
parent 42eeab5fd1
commit 8e8231f9d6
3 changed files with 3 additions and 11 deletions

View File

@@ -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`,

View File

@@ -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>".}

View File

@@ -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()