X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsignbitd.c;h=4042349b6f053f55d64c45cfbd6e910dfddc2232;hb=56c2804916c20464b13800341b426536c842191d;hp=8907766f209cd99cd0a44271dbd761e64c825137;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/signbitd.c b/lib/signbitd.c index 8907766f2..4042349b6 100644 --- a/lib/signbitd.c +++ b/lib/signbitd.c @@ -1,5 +1,5 @@ /* signbit() macro: Determine the sign bit of a floating-point number. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,10 +20,12 @@ #include #include -#include "isnan.h" +#include "isnand-nolibm.h" #include "float+.h" -#undef gl_signbitd +#ifdef gl_signbitd_OPTIMIZED_MACRO +# undef gl_signbitd +#endif int gl_signbitd (double arg) @@ -45,7 +47,7 @@ gl_signbitd (double arg) #else /* This does not do the right thing for NaN, but this is irrelevant for most use cases. */ - if (isnan (arg)) + if (isnand (arg)) return 0; if (arg < 0.0) return 1;