This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Use long long in x86_64/fpu/math_private.h


On Mon, Mar 19, 2012 at 2:49 PM, Roland McGrath <roland@hack.frob.com> wrote:
> Let's say what we mean and make it int64_t.

Here is the updated patch.  OK to install?

Thanks.

-- 
H.J.
From c969481145209ae6ab27369f78f7510b182ea2c9 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Mon, 21 Nov 2011 14:52:31 -0800
Subject: [PATCH 51/67] Add x32 support to math_private.h

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.
 
diff --git a/sysdeps/x86_64/fpu/math_private.h b/sysdeps/x86_64/fpu/math_private.h
index 67c5f6a..6177182 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_;								      \
     double d__;								      \
     asm (MOVD " %1, %0" : "=x" (d__) : "rm" (i_));			      \
     d = d__;								      \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]