mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
nptl: update default pthread-offsets.h
Remove unused definitions, and correct __PTHREAD_RWLOCK_FLAGS_OFFSET for __WORDSIZE == 64.
This commit is contained in:
parent
4970c9e0b5
commit
6d0d2eb1e7
@ -1,26 +1,16 @@
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
/* These values are based on internal generic types from
|
||||
mutex-internal.h and rwlock-internal.h. */
|
||||
bits/struct_mutex.h and bits/struct_rwlock.h. */
|
||||
|
||||
#if __WORDSIZE == 64
|
||||
# define __PTHREAD_MUTEX_NUSERS_OFFSET 12
|
||||
# define __PTHREAD_MUTEX_KIND_OFFSET 16
|
||||
# define __PTHREAD_MUTEX_SPINS_OFFSET 20
|
||||
# define __PTHREAD_MUTEX_LIST_OFFSET 24
|
||||
# define __PTHREAD_MUTEX_KIND_OFFSET 16
|
||||
#else
|
||||
# define __PTHREAD_MUTEX_NUSERS_OFFSET 16
|
||||
# define __PTHREAD_MUTEX_KIND_OFFSET 12
|
||||
# define __PTHREAD_MUTEX_SPINS_OFFSET 20
|
||||
# define __PTHREAD_MUTEX_LIST_OFFSET 20
|
||||
# define __PTHREAD_MUTEX_KIND_OFFSET 12
|
||||
#endif
|
||||
|
||||
#if __WORDSIZE == 64
|
||||
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 27
|
||||
#else
|
||||
# if __BYTE_ORDER == __BIG_ENDIAN
|
||||
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 27
|
||||
# else
|
||||
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 24
|
||||
# endif
|
||||
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 24
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user