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]

Fix fdiml build for PowerPC


math/s_fdiml.c uses fpclassifyl.  There is no such function, so glibc
fails to build on targets such as PowerPC that use math/s_fdiml.c;
there's __fpclassifyl, used by the fpclassify type-generic macro,
instead.  s_fdiml.c can just use the type-generic macro, as in fact it
does in a third place (it has two calls to fpclassifyl and one to
fpclassify); this patch makes it do so.

2009-08-25  Joseph Myers  <joseph@codesourcery.com>

	* math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.

diff --git a/math/s_fdiml.c b/math/s_fdiml.c
index e1ff11b..f3072b9 100644
--- a/math/s_fdiml.c
+++ b/math/s_fdiml.c
@@ -24,8 +24,8 @@
 long double
 __fdiml (long double x, long double y)
 {
-  int clsx = fpclassifyl (x);
-  int clsy = fpclassifyl (y);
+  int clsx = fpclassify (x);
+  int clsy = fpclassify (y);
 
   if (clsx == FP_NAN || clsy == FP_NAN
       || (y < 0 && clsx == FP_INFINITE && clsy == FP_INFINITE))

-- 
Joseph S. Myers
joseph@codesourcery.com


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