Define atomic_delay.
authordrepper <drepper>
Tue, 7 Sep 2004 22:30:46 +0000 (22:30 +0000)
committerdrepper <drepper>
Tue, 7 Sep 2004 22:30:46 +0000 (22:30 +0000)
sysdeps/i386/i486/bits/atomic.h
sysdeps/x86_64/bits/atomic.h

index 7f3d534..c748761 100644 (file)
@@ -361,3 +361,6 @@ typedef uintmax_t uatomic_max_t;
      else                                                                    \
        abort ();                                                             \
      __result; })
+
+
+#define atomic_delay() asm ("rep; nop")
index f31bedb..133a68d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -319,3 +319,6 @@ typedef uintmax_t uatomic_max_t;
                         : "=q" (__result), "=m" (*mem)                       \
                         : "m" (*mem), "ir" (bit));                           \
      __result; })
+
+
+#define atomic_delay() asm ("rep; nop")