From 95c2bf9fb4cfcbceebac121d5a5a0d702af25cef Mon Sep 17 00:00:00 2001 From: root Date: Sun, 24 Jul 2011 03:32:54 +0000 Subject: *** empty log message *** --- ecb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecb.h') diff --git a/ecb.h b/ecb.h index 8414e6e..36f04fd 100644 --- a/ecb.h +++ b/ecb.h @@ -68,7 +68,7 @@ #ifndef ECB_MEMORY_FENCE #if ECB_GCC_VERSION(2,5) #if __x86 - #define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; or.b $0, -1(%%esp)" : : : "memory") + #define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory") #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE #define ECB_MEMORY_FENCE_RELEASE ECB_MEMORY_FENCE /* better be safe than sorry */ #elif __amd64 @@ -84,7 +84,7 @@ #define ECB_MEMORY_FENCE __sync_synchronize () #define ECB_MEMORY_FENCE_ACQUIRE ({ char dummy = 0; __sync_lock_test_and_set (&dummy, 1); }) #define ECB_MEMORY_FENCE_RELEASE ({ char dummy = 1; __sync_lock_release (&dummy ); }) - #elif _MSC_VER >= 1400 + #elif _MSC_VER >= 1400 && 0 /* TODO: only true when using volatiles */ #define ECB_MEMORY_FENCE do { } while (0) #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE #define ECB_MEMORY_FENCE_RELEASE ECB_MEMORY_FENCE -- cgit v1.2.3