blob: 875670e495da0e54f2c44a552b1674b23e0a201b [file] [log] [blame]
#include <intrin.h>
__LONG32 _InterlockedOr(__LONG32 volatile *Destination, __LONG32 Value)
{
__asm__ __volatile__("lock ; orl %0,%1"
: : "r"(Value),"m"(*Destination) : "memory");
return *Destination;
}
__LONG32 InterlockedOr(__LONG32 volatile *, __LONG32) __attribute__((alias("_InterlockedOr")));