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]

[PATCH] Fix generic INSERT_WORDS64() argument order.


I ran into this while testing a patch which enables the new
dbl-64/wordsize-64 math code on sparc64.  x86_64, the one platform
that currently enables it, has an override for this macro which gets
the argument ordering right.

Any objections?

2010-03-03  David S. Miller  <davem@davemloft.net>

	* math/math_private.h (INSERT_WORDS64): Fix argument order.

diff --git a/math/math_private.h b/math/math_private.h
index fade7e1..e5ca61f 100644
--- a/math/math_private.h
+++ b/math/math_private.h
@@ -111,7 +111,7 @@ do {								\
 } while (0)
 
 /* Get all in one, efficient on 64-bit machines.  */
-#define INSERT_WORDS64(i,d)					\
+#define INSERT_WORDS64(d,i)					\
 do {								\
   ieee_double_shape_type iw_u;					\
   iw_u.word = (i);						\


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