mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-29 10:43:57 +00:00
@@ -13,6 +13,9 @@ from math import sqrt, ln, log10, log2, exp, round, arccos, arcsin,
|
||||
arctan, arctan2, cos, cosh, hypot, sinh, sin, tan, tanh, pow, trunc,
|
||||
floor, ceil, `mod`
|
||||
|
||||
when declared(math.copySign):
|
||||
from math import copySign
|
||||
|
||||
from os import getEnv, existsEnv, dirExists, fileExists, putEnv, walkDir, getAppFilename
|
||||
from md5 import getMD5
|
||||
from sighashes import symBodyDigest
|
||||
@@ -168,6 +171,9 @@ proc registerAdditionalOps*(c: PCtx) =
|
||||
wrap1f_math(floor)
|
||||
wrap1f_math(ceil)
|
||||
|
||||
when declared(copySign):
|
||||
wrap2f_math(copySign)
|
||||
|
||||
wrap1s(getMD5, md5op)
|
||||
|
||||
proc `mod Wrapper`(a: VmArgs) {.nimcall.} =
|
||||
|
||||
Reference in New Issue
Block a user