mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
5b6113d62e
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>
17 lines
332 B
C
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
|