ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/ecb.h
(Generate patch)

Comparing libeio/ecb.h (file contents):
Revision 1.8 by root, Sun Aug 21 01:03:09 2011 UTC vs.
Revision 1.9 by root, Thu Sep 15 13:20:54 2011 UTC

72 #define ECB_MEMORY_FENCE do { } while (0) 72 #define ECB_MEMORY_FENCE do { } while (0)
73#endif 73#endif
74 74
75#ifndef ECB_MEMORY_FENCE 75#ifndef ECB_MEMORY_FENCE
76 #if ECB_GCC_VERSION(2,5) 76 #if ECB_GCC_VERSION(2,5)
77 #if __x86 77 #if __i386__
78 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory") 78 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory")
79 #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE /* non-lock xchg might be enough */ 79 #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE /* non-lock xchg might be enough */
80 #define ECB_MEMORY_FENCE_RELEASE do { } while (0) /* unlikely to change in future cpus */ 80 #define ECB_MEMORY_FENCE_RELEASE do { } while (0) /* unlikely to change in future cpus */
81 #elif __amd64 81 #elif __amd64
82 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mfence" : : : "memory") 82 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mfence" : : : "memory")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines