(atomic_forced_read): New macro.
authordrepper <drepper>
Thu, 21 Dec 2006 21:44:00 +0000 (21:44 +0000)
committerdrepper <drepper>
Thu, 21 Dec 2006 21:44:00 +0000 (21:44 +0000)
include/atomic.h

index ec1e989..2ad8b5f 100644 (file)
 #endif
 
 
+#ifndef atomic_forced_read
+# define atomic_forced_read(x) \
+  ({ __typeof (x) __x; __asm ("" : "=r" (__x) : "0" (x)); __x; })
+#endif
+
+
 #ifndef atomic_delay
 # define atomic_delay() do { /* nothing */ } while (0)
 #endif