about summary refs log tree commit diff
path: root/sysdeps/powerpc/nptl/pthread-offsets.h
blob: bdda1f197e1282caffb5692d36054aec7acd4b0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <bits/wordsize.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_ELISION_OFFSET  22
# define __PTHREAD_MUTEX_LIST_OFFSET     24
#else
# define __PTHREAD_MUTEX_NUSERS_OFFSET   16
# define __PTHREAD_MUTEX_KIND_OFFSET     12
# define __PTHREAD_MUTEX_SPINS_OFFSET    20
# define __PTHREAD_MUTEX_ELISION_OFFSET  22
# define __PTHREAD_MUTEX_LIST_OFFSET     20
#endif