ia64 lowlevellock.h __lll_add use

Ian Wienand <[email protected]>
Newsgroups gmane.comp.lib.phil
Message-ID <[email protected]>
Hello,

ChangeLog states 

2003-03-20  Ulrich Drepper  <[email protected]>
        * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
        Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
        definitions.  Replace uses with calls to atomic_* functions.

but as of 0.32 there are still references to __lll_add in the file.
Maybe a forgotten update?

-i

Index: sysdeps/unix/sysv/linux/ia64/lowlevellock.h
===================================================================
RCS file: /home/ianw/cvs/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 lowlevellock.h
--- sysdeps/unix/sysv/linux/ia64/lowlevellock.h 31 Mar 2003 00:13:17 -0000      1.1.1.3
+++ sysdeps/unix/sysv/linux/ia64/lowlevellock.h 31 Mar 2003 01:45:08 -0000
@@ -103,7 +103,7 @@
 __attribute__ ((always_inline))
 __lll_mutex_lock (int *futex)
 {
-  int val = __lll_add (futex, 1);
+  int val = atomic_exchange_and_add (futex, 1);
  
   if (__builtin_expect (val != 0, 0))
     __lll_lock_wait (futex, val);
@@ -119,7 +119,7 @@
 __attribute__ ((always_inline))
 __lll_mutex_timedlock (int *futex, const struct timespec *abstime)
 {
-  int val = __lll_add (futex, 1);
+  int val = atomic_exchange_and_add (futex, 1);
   int result = 0;
  
   if (__builtin_expect (val != 0, 0))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.