Import Upstream version 2.72.4
This commit is contained in:
commit
4ef3ff9793
2003 changed files with 1332420 additions and 0 deletions
22
glib/gnulib/frexp.c
Normal file
22
glib/gnulib/frexp.c
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue