mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 14:50:17 +00:00
a1ccc0654b
Since RTM intrinsics are supported in GCC 4.9, we can use them in pthread mutex lock elision. * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c): Add -mrtm. (CFLAGS-elision-unlock.c): Likewise. (CFLAGS-elision-timed.c): Likewise. (CFLAGS-elision-trylock.c): Likewise. * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
12 lines
191 B
C
12 lines
191 B
C
/* Shared RTM header. */
|
|
#ifndef _HLE_H
|
|
#define _HLE_H 1
|
|
|
|
#include <x86intrin.h>
|
|
|
|
#define _ABORT_LOCK_BUSY 0xff
|
|
#define _ABORT_LOCK_IS_LOCKED 0xfe
|
|
#define _ABORT_NESTED_TRYLOCK 0xfd
|
|
|
|
#endif
|