src/atomic/SDL_spinlock.c
changeset 12241 f72836cfb92b
parent 12045 bac108d0cd86
child 12503 806492103856
equal deleted inserted replaced
12240:08b190d518fc 12241:f72836cfb92b
    38 
    38 
    39 #if defined(__WATCOMC__) && defined(__386__)
    39 #if defined(__WATCOMC__) && defined(__386__)
    40 SDL_COMPILE_TIME_ASSERT(locksize, 4==sizeof(SDL_SpinLock));
    40 SDL_COMPILE_TIME_ASSERT(locksize, 4==sizeof(SDL_SpinLock));
    41 extern _inline int _SDL_xchg_watcom(volatile int *a, int v);
    41 extern _inline int _SDL_xchg_watcom(volatile int *a, int v);
    42 #pragma aux _SDL_xchg_watcom = \
    42 #pragma aux _SDL_xchg_watcom = \
    43   "xchg [ecx], eax" \
    43   "lock xchg [ecx], eax" \
    44   parm [ecx] [eax] \
    44   parm [ecx] [eax] \
    45   value [eax] \
    45   value [eax] \
    46   modify exact [eax];
    46   modify exact [eax];
    47 #endif /* __WATCOMC__ && __386__ */
    47 #endif /* __WATCOMC__ && __386__ */
    48 
    48