diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/system/arithm.nim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/system/arithm.nim b/lib/system/arithm.nim index b93bb9844..723195553 100755 --- a/lib/system/arithm.nim +++ b/lib/system/arithm.nim @@ -111,7 +111,7 @@ const when asmVersion and not defined(gcc) and not defined(llvm_gcc): # assembler optimized versions for compilers that # have an intel syntax assembler: - proc addInt(a, b: int): int {.compilerProc, pure.} = + proc addInt(a, b: int): int {.compilerProc, noStackFrame.} = # a in eax, and b in edx asm """ mov eax, `a` @@ -121,7 +121,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc): theEnd: """ - proc subInt(a, b: int): int {.compilerProc, pure.} = + proc subInt(a, b: int): int {.compilerProc, noStackFrame.} = asm """ mov eax, `a` sub eax, `b` @@ -130,7 +130,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc): theEnd: """ - proc negInt(a: int): int {.compilerProc, pure.} = + proc negInt(a: int): int {.compilerProc, noStackFrame.} = asm """ mov eax, `a` neg eax @@ -139,7 +139,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc): theEnd: """ - proc divInt(a, b: int): int {.compilerProc, pure.} = + proc divInt(a, b: int): int {.compilerProc, noStackFrame.} = asm """ mov eax, `a` mov ecx, `b` @@ -150,7 +150,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc): theEnd: """ - proc modInt(a, b: int): int {.compilerProc, pure.} = + proc modInt(a, b: int): int {.compilerProc, noStackFrame.} = asm """ mov eax, `a` mov ecx, `b` @@ -162,7 +162,7 @@ when asmVersion and not defined(gcc) and not defined(llvm_gcc): mov eax, edx """ - proc mulInt(a, b: int): int {.compilerProc, pure.} = + proc mulInt(a, b: int): int {.compilerProc, noStackFrame.} = asm """ mov eax, `a` mov ecx, `b` |