From e366497b95e3c902770951271e28ecbf1137bd7d Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Mon, 17 Sep 2007 05:32:04 +0000 Subject: [PATCH] Fix build for new rosbe-ppc. svn path=/trunk/; revision=29071 --- reactos/include/psdk/intrin_ppc.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/reactos/include/psdk/intrin_ppc.h b/reactos/include/psdk/intrin_ppc.h index 6dd40182e6e..8bd3aa68c45 100644 --- a/reactos/include/psdk/intrin_ppc.h +++ b/reactos/include/psdk/intrin_ppc.h @@ -447,23 +447,6 @@ static __inline__ __attribute__((always_inline)) unsigned char _interlockedbitte return (y & ~mask) != 0; } - -static __inline__ __attribute__((always_inline)) long _InterlockedCompareExchange(volatile long * const Destination, const long Exchange, const long Comperand) -{ - long retval = Comperand; - __asm__ __volatile__ ( - "sync\n" - "1: lwarx %0,0,%1\n" - " subf. %0,%2,%0\n" - " bne 2f\n" - " stwcx. %3,0,%1\n" - " bne- 1b\n" - "2: isync" - : "=b" (retval) - : "b" (Destination), "r" (Comperand), "r" (Exchange) - : "cr0", "memory"); - return retval; -} #endif static __inline__ __attribute__((always_inline)) long _InterlockedDecrement(volatile long * const lpAddend)