bugfix: init of temps
This commit is contained in:
parent
b1ca3ab7c5
commit
e439c6b02e
15 changed files with 107 additions and 76 deletions
|
|
@ -433,4 +433,15 @@ struct NimException {
|
|||
|
||||
#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
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue