Use int64_t in x86_64/fpu/math_private.h

This commit is contained in:
H.J. Lu 2012-03-19 15:09:58 -07:00
parent 5df98260fe
commit b4c35121c4
2 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,12 @@
(libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
(libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
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

View File

@ -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__; \