/* signbit() macro: Determine the sign bit of a floating-point number.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007-2013 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
#include <math.h>
#include <string.h>
-#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)
#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;