ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.394 by root, Thu Aug 4 14:49:27 2011 UTC vs.
Revision 1.395 by root, Wed Aug 24 16:08:17 2011 UTC

542 #define ECB_MEMORY_FENCE do { } while (0) 542 #define ECB_MEMORY_FENCE do { } while (0)
543#endif 543#endif
544 544
545#ifndef ECB_MEMORY_FENCE 545#ifndef ECB_MEMORY_FENCE
546 #if ECB_GCC_VERSION(2,5) 546 #if ECB_GCC_VERSION(2,5)
547 #if __x86 547 #if __i386__
548 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory") 548 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory")
549 #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE /* non-lock xchg might be enough */ 549 #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE /* non-lock xchg might be enough */
550 #define ECB_MEMORY_FENCE_RELEASE do { } while (0) /* unlikely to change in future cpus */ 550 #define ECB_MEMORY_FENCE_RELEASE do { } while (0) /* unlikely to change in future cpus */
551 #elif __amd64 551 #elif __amd64
552 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mfence" : : : "memory") 552 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mfence" : : : "memory")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines