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