about summary refs log tree commit diff
path: root/sysdeps/x86_64/sysdep.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-03-17 09:22:29 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-03-17 09:22:29 -0700
commit43b0d50690f16e1b71700689db79eb335e4c6714 (patch)
treeb25a37ed0a46e31aae6e24264412a08c578e4dba /sysdeps/x86_64/sysdep.h
parent5e94aad2e687b98bc0c0fd6feb8338a16e480860 (diff)
downloadglibc-43b0d50690f16e1b71700689db79eb335e4c6714.tar.gz
glibc-43b0d50690f16e1b71700689db79eb335e4c6714.tar.xz
glibc-43b0d50690f16e1b71700689db79eb335e4c6714.zip
Replace MOVE_LP/ADD_LP/SUB_LP/CMP_LP with LP_OP
2012-03-17  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/x86_64/sysdep.h (MOVE_LP): Removed.
	(ADD_LP): Likewise.
	(SUB_LP): Likewise.
	(CMP_LP): Likewise.
	(LP_OP): New.

	* sysdeps/x86_64/x32/sysdep.h (MOVE_LP): Removed.
	(ADD_LP): Likewise.
	(SUB_LP): Likewise.
	(CMP_LP): Likewise.
	(LP_OP): New.

nptl/

2012-03-17  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/unix/sysv/linux/x86_64/cancellation.S: Replace ADD_LP,
	CMP_LP, MOVE_LP, SUB_LP with LP_OP(add), LP_OP(cmp), LP_OP(mov),
	LP_OP(sub).
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise.
Diffstat (limited to 'sysdeps/x86_64/sysdep.h')
-rw-r--r--sysdeps/x86_64/sysdep.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/sysdeps/x86_64/sysdep.h b/sysdeps/x86_64/sysdep.h
index 466abff273..f426fbd0d4 100644
--- a/sysdeps/x86_64/sysdep.h
+++ b/sysdeps/x86_64/sysdep.h
@@ -98,17 +98,8 @@ lose:									      \
 /* Long and pointer size in bytes.  */
 #define LP_SIZE	8
 
-/* Instruction to move long and pointer.  */
-#define MOVE_LP movq
-
-/* Instruction to add long and pointer.  */
-#define ADD_LP addq
-
-/* Instruction to substract long and pointer.  */
-#define SUB_LP subq
-
-/* Instruction to compare against long and pointer.  */
-#define CMP_LP cmpq
+/* Instruction to operate on long and pointer.  */
+#define LP_OP(insn) insn##q
 
 /* Assembler address directive. */
 #define ASM_ADDR .quad
@@ -139,6 +130,9 @@ lose:									      \
 /* Assembler address directive. */
 #define ASM_ADDR ".quad"
 
+/* Instruction to operate on long and pointer.  */
+#define LP_OP(insn) #insn "q"
+
 /* Registers to hold long and pointer.  */
 #define RAX_LP	"rax"
 #define RBP_LP	"rbp"