diff options
author | root <root> | 2011-07-24 03:32:54 +0000 |
---|---|---|
committer | root <root> | 2011-07-24 03:32:54 +0000 |
commit | 95c2bf9fb4cfcbceebac121d5a5a0d702af25cef (patch) | |
tree | 9b1f131a618da0a372e46b8a83b3d9b712e2414d /ecb.h | |
parent | b6919596507d363d8777bb551ab5ca8b1bbbc28b (diff) |
*** empty log message ***
Diffstat (limited to 'ecb.h')
-rw-r--r-- | ecb.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |