mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Also use uint64_t in __new_sem_wait_fast
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
with uint64_t.
|
with uint64_t.
|
||||||
* nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
|
* nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
|
||||||
(uint64_t) 1.
|
(uint64_t) 1.
|
||||||
|
(__new_sem_wait_fast): Replace unsigned long with uint64_t.
|
||||||
(__new_sem_wait_slow): Replace unsigned long int with uint64_t.
|
(__new_sem_wait_slow): Replace unsigned long int with uint64_t.
|
||||||
Replace 1UL with (uint64_t) 1.
|
Replace 1UL with (uint64_t) 1.
|
||||||
* sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
|
* sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
|
||||||
|
@@ -228,7 +228,7 @@ __new_sem_wait_fast (struct new_sem *sem, int definitive_result)
|
|||||||
and the failure path of the CAS. If the weak CAS fails and we need a
|
and the failure path of the CAS. If the weak CAS fails and we need a
|
||||||
definitive result, retry. */
|
definitive result, retry. */
|
||||||
#if __HAVE_64B_ATOMICS
|
#if __HAVE_64B_ATOMICS
|
||||||
unsigned long d = atomic_load_relaxed (&sem->data);
|
uint64_t d = atomic_load_relaxed (&sem->data);
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if ((d & SEM_VALUE_MASK) == 0)
|
if ((d & SEM_VALUE_MASK) == 0)
|
||||||
|
Reference in New Issue
Block a user