mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-09 09:21:40 +01:00
23 lines
342 B
C
23 lines
342 B
C
#include <config.h>
|
|
|
|
/* Specification. */
|
|
#include <gnulib_math.h>
|
|
|
|
#include <float.h>
|
|
#include "isnand-nolibm.h"
|
|
|
|
double rpl_frexp (double x, int *expptr)
|
|
{
|
|
if (x == 0.0 || x == -0.0)
|
|
{
|
|
*expptr = x;
|
|
return x;
|
|
}
|
|
else if (isnan (x))
|
|
return x;
|
|
else if (isinf (x))
|
|
return x;
|
|
#undef frexp
|
|
return frexp (x, expptr);
|
|
}
|