This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Use long long in x86_64/fpu/math_private.h
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 19 Mar 2012 14:30:32 -0700
- Subject: PATCH: Use long long in x86_64/fpu/math_private.h
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This patch uses long long in x86_64/fpu/math_private.h. OK to install?
Thanks.
H.J.
---
2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
long long int instead of long int.
(INSERT_WORDS64): Likwise.
diff --git a/sysdeps/x86_64/fpu/math_private.h b/sysdeps/x86_64/fpu/math_private.h
index 67c5f6a..d6d8939 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_; \
+ long long int 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; \
+ long long int i_ = i; \
double d__; \
asm (MOVD " %1, %0" : "=x" (d__) : "rm" (i_)); \
d = d__; \