function.
#include "math_private.h"
+/* This is a quick hack for now. In version 2.1.x we'll have a real
+ function. */
+static inline int
+signbit (double x)
+{
+ int32_t hx;
+
+ GET_HIGH_WORD (hx, x);
+ return hx & 0x80000000;
+}
+
+
#ifdef __STDC__
double __pow(double x, double y) /* wrapper pow */
#else
#include "math_private.h"
+/* This is a quick hack for now. In version 2.1.x we'll have a real
+ function. */
+static inline int
+signbit (float x)
+{
+ int32_t hx;
+
+ GET_FLOAT_WORD (hx, x);
+ return hx & 0x80000000;
+}
+
+
#ifdef __STDC__
float __powf(float x, float y) /* wrapper powf */
#else
#include "math_private.h"
+/* This is a quick hack for now. In version 2.1.x we'll have a real
+ function. */
+static inline int
+signbit (long double x)
+{
+ int32_t e;
+
+ GET_LDOUBLE_EXP (e, x);
+ return e & 0x8000;
+}
+
+
#ifdef __STDC__
long double __powl(long double x, long double y)/* wrapper powl */
#else