All pastes #52290 Raw Edit

kommerck

public c v1 · immutable
#52290 ·published 2006-04-29 22:56 UTC
rendered paste body
int InterlockedExchangeAdd(int* target, int value){	__asm__ __volatile__ (		"  lock\n"		"  addl %1,%0\n"		: "=a" (*target), "=b" (value)		: "a" (*target), "b" (value)		: "%ebx", "%eax", "memory" );	return value;}