glibc/sysdeps/riscv/nptl/pthread-offsets.h
Alistair Francis 5b6113d62e RISC-V: Support the 32-bit ABI implementation
This patch adds the ABI implementation for 32-bit RISC-V.  It contains
the Linux-specific and RISC-V architecture code.

Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
2020-08-27 08:17:42 -07:00

17 lines
332 B
C

#if __WORDSIZE == 64
# define __PTHREAD_MUTEX_KIND_OFFSET 16
#else
# define __PTHREAD_MUTEX_KIND_OFFSET 12
#endif
#if __WORDSIZE == 64
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
#else
# if __BYTE_ORDER == __BIG_ENDIAN
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 27
# else
# define __PTHREAD_RWLOCK_FLAGS_OFFSET 24
# endif
#endif