This commit is contained in:
Araq 2020-03-16 16:24:50 +01:00
commit b9b53b6ca1

View file

@ -549,6 +549,7 @@ typedef int Nim_and_C_compiler_disagree_on_target_architecture[sizeof(NI) == siz
#define nimModInt(a, b, res) (((*res) = (a) % (b)), 0) #define nimModInt(a, b, res) (((*res) = (a) % (b)), 0)
#define nimModInt64(a, b, res) (((*res) = (a) % (b)), 0) #define nimModInt64(a, b, res) (((*res) = (a) % (b)), 0)
#if !defined(_MSC_VER)
/* these exist because we cannot have .compilerProcs that are importc'ed /* these exist because we cannot have .compilerProcs that are importc'ed
by a different name */ by a different name */
@ -566,5 +567,6 @@ typedef int Nim_and_C_compiler_disagree_on_target_architecture[sizeof(NI) == siz
#define nimSubInt(a, b, res) __builtin_ssubll_overflow(a, b, (long long int*)res) #define nimSubInt(a, b, res) __builtin_ssubll_overflow(a, b, (long long int*)res)
#define nimMulInt(a, b, res) __builtin_smulll_overflow(a, b, (long long int*)res) #define nimMulInt(a, b, res) __builtin_smulll_overflow(a, b, (long long int*)res)
#endif #endif
#endif
#endif /* NIMBASE_H */ #endif /* NIMBASE_H */