2017-11-14 21:10:38 +00:00
|
|
|
#include <bits/wordsize.h>
|
|
|
|
|
|
|
|
/* These values are based on internal generic types from
|
2020-02-05 16:33:30 +00:00
|
|
|
bits/struct_mutex.h and bits/struct_rwlock.h. */
|
2017-11-14 21:10:38 +00:00
|
|
|
|
|
|
|
#if __WORDSIZE == 64
|
2020-02-05 16:33:30 +00:00
|
|
|
# define __PTHREAD_MUTEX_KIND_OFFSET 16
|
2017-11-14 21:10:38 +00:00
|
|
|
#else
|
2020-02-05 16:33:30 +00:00
|
|
|
# define __PTHREAD_MUTEX_KIND_OFFSET 12
|
2017-11-14 21:10:38 +00:00
|
|
|
#endif
|
|
|
|
|
2020-02-05 16:33:30 +00:00
|
|
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
|
|
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 27
|
2017-11-14 21:10:38 +00:00
|
|
|
#else
|
2020-02-05 16:33:30 +00:00
|
|
|
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 24
|
2017-11-14 21:10:38 +00:00
|
|
|
#endif
|