add math.signbit (#16592)

This commit is contained in:
flywind
2021-01-07 01:48:02 -06:00
committed by GitHub
parent 4754806fb5
commit bab0aa6ecf
4 changed files with 45 additions and 1 deletions

View File

@@ -16,6 +16,9 @@ from math import sqrt, ln, log10, log2, exp, round, arccos, arcsin,
when declared(math.copySign):
from math import copySign
when declared(math.signbit):
from math import signbit
from os import getEnv, existsEnv, dirExists, fileExists, putEnv, walkDir, getAppFilename
from md5 import getMD5
from sighashes import symBodyDigest
@@ -174,6 +177,9 @@ proc registerAdditionalOps*(c: PCtx) =
when declared(copySign):
wrap2f_math(copySign)
when declared(signbit):
wrap1f_math(signbit)
wrap1s(getMD5, md5op)
proc `mod Wrapper`(a: VmArgs) {.nimcall.} =