fixes #2909
This commit is contained in:
parent
1452edfbb9
commit
8d39669233
6 changed files with 71 additions and 37 deletions
|
|
@ -18,7 +18,7 @@ proc raiseDivByZero {.compilerproc, noinline.} =
|
|||
sysFatal(DivByZeroError, "division by zero")
|
||||
|
||||
when defined(builtinOverflow):
|
||||
# Builtin compiler functions for improved performance
|
||||
# Builtin compiler functions for improved performance
|
||||
when sizeof(clong) == 8:
|
||||
proc addInt64Overflow[T: int64|int](a, b: T, c: var T): bool {.
|
||||
importc: "__builtin_saddl_overflow", nodecl, nosideeffect.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue