This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix fdiml build for PowerPC
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 25 Aug 2009 21:36:23 +0000 (UTC)
- Subject: 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