Remove deprecated math.c_frexp (#19518)
* Remove Deprecated math proc * Remove Deprecated math proc * Remove Deprecated math proc
This commit is contained in:
parent
42eeab5fd1
commit
8e8231f9d6
3 changed files with 3 additions and 11 deletions
|
|
@ -44,6 +44,9 @@ becomes an alias for `addr`.
|
||||||
|
|
||||||
- Changed mimedb to use an `OrderedTable` instead of `OrderedTableRef`, to use it in a const.
|
- Changed mimedb to use an `OrderedTable` instead of `OrderedTableRef`, to use it in a const.
|
||||||
|
|
||||||
|
- Removed deprecated `math.c_frexp`.
|
||||||
|
|
||||||
|
|
||||||
## Language changes
|
## Language changes
|
||||||
|
|
||||||
- Pragma macros on type definitions can now return `nnkTypeSection` nodes as well as `nnkTypeDef`,
|
- 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>".}
|
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`.
|
# don't export `c_frexp` in the future and remove `c_frexp2`.
|
||||||
func c_frexp2(x: cfloat, exponent: var cint): cfloat {.
|
func c_frexp2(x: cfloat, exponent: var cint): cfloat {.
|
||||||
importc: "frexpf", header: "<math.h>".}
|
importc: "frexpf", header: "<math.h>".}
|
||||||
|
|
|
||||||
|
|
@ -437,12 +437,6 @@ template main() =
|
||||||
doAssert lgamma(-0.0) == Inf
|
doAssert lgamma(-0.0) == Inf
|
||||||
doAssert lgamma(-1.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()
|
static: main()
|
||||||
main()
|
main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue