about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-03-19 15:09:58 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-03-19 15:17:48 -0700
commitb4c35121c4e62bcb0d774d56896a3e2868645faa (patch)
treed2c48035222ad4a93e564e0ea824619eda69a428
parent5df98260fe6718703cef3b5d337ec9f5d41eb815 (diff)
downloadglibc-b4c35121c4e62bcb0d774d56896a3e2868645faa.tar.gz
glibc-b4c35121c4e62bcb0d774d56896a3e2868645faa.tar.xz
glibc-b4c35121c4e62bcb0d774d56896a3e2868645faa.zip
Use int64_t in x86_64/fpu/math_private.h
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/x86_64/fpu/math_private.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f6b7c2bbed..295f499bf6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,12 @@
 
 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
+	int64_t instead of long int.
+	(INSERT_WORDS64): Likwise.
+
+2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
 	_Unwind_GetCFA return to _Unwind_Ptr first.
 
diff --git a/sysdeps/x86_64/fpu/math_private.h b/sysdeps/x86_64/fpu/math_private.h
index 67c5f6a324..63a699e8fc 100644
--- a/sysdeps/x86_64/fpu/math_private.h
+++ b/sysdeps/x86_64/fpu/math_private.h
@@ -12,7 +12,7 @@
 /* Direct movement of float into integer register.  */
 #define EXTRACT_WORDS64(i, d)						      \
   do {									      \
-    long int i_;							      \
+    int64_t i_;								      \
     asm (MOVD " %1, %0" : "=rm" (i_) : "x" ((double) (d)));		      \
     (i) = i_;								      \
   } while (0)
@@ -20,7 +20,7 @@
 /* And the reverse.  */
 #define INSERT_WORDS64(d, i) \
   do {									      \
-    long int i_ = i;							      \
+    int64_t i_ = i;							      \
     double d__;								      \
     asm (MOVD " %1, %0" : "=x" (d__) : "rm" (i_));			      \
     d = d__;								      \