diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-12-26 20:20:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-26 13:20:05 +0100 |
commit | f7c203fb6c89b5cef83c4f326aeb23ef8c4a2c40 (patch) | |
tree | 62d6354e81eb0eb15f22bb3189f6e9d2f4ed27c0 /lib/system/jssys.nim | |
parent | b08c50bb553364eec1e20ab788d990b63f4548e0 (diff) | |
download | Nim-f7c203fb6c89b5cef83c4f326aeb23ef8c4a2c40.tar.gz |
remove legacy code (#21134)
* remove legacy code * fixes
Diffstat (limited to 'lib/system/jssys.nim')
-rw-r--r-- | lib/system/jssys.nim | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim index 9dfa80877..4f64403fe 100644 --- a/lib/system/jssys.nim +++ b/lib/system/jssys.nim @@ -503,28 +503,6 @@ proc absInt(a: int): int {.compilerproc.} = proc absInt64(a: int64): int64 {.compilerproc.} = result = if a < 0: a*(-1) else: a -when not defined(nimNoZeroExtendMagic): - proc ze*(a: int): int {.compilerproc.} = - result = a - - proc ze64*(a: int64): int64 {.compilerproc.} = - result = a - - proc toU8*(a: int): int8 {.asmNoStackFrame, compilerproc.} = - asm """ - return `a`; - """ - - proc toU16*(a: int): int16 {.asmNoStackFrame, compilerproc.} = - asm """ - return `a`; - """ - - proc toU32*(a: int64): int32 {.asmNoStackFrame, compilerproc.} = - asm """ - return `a`; - """ - proc nimMin(a, b: int): int {.compilerproc.} = return if a <= b: a else: b proc nimMax(a, b: int): int {.compilerproc.} = return if a >= b: a else: b |