File: frexp.c

package info (click to toggle)
glib2.0 2.78.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 58,024 kB
  • sloc: ansic: 495,608; xml: 17,404; python: 9,572; perl: 1,144; sh: 1,094; cpp: 487; makefile: 225
file content (22 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);
}