fixes #3279
This commit is contained in:
parent
479373ad79
commit
646a569421
2 changed files with 30 additions and 20 deletions
|
|
@ -415,16 +415,6 @@ struct TFrame {
|
|||
|
||||
#define NIM_POSIX_INIT __attribute__((constructor))
|
||||
|
||||
#if defined(_MSCVER) && defined(__i386__)
|
||||
__declspec(naked) int __fastcall NimXadd(volatile int* pNum, int val) {
|
||||
__asm {
|
||||
lock xadd dword ptr [ECX], EDX
|
||||
mov EAX, EDX
|
||||
ret
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define likely(x) __builtin_expect(x, 1)
|
||||
# define unlikely(x) __builtin_expect(x, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue