File: frexpl.c

package info (click to toggle)
glib2.0 2.84.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 66,144 kB
  • sloc: ansic: 538,877; python: 9,624; sh: 1,572; xml: 1,482; perl: 1,222; cpp: 535; makefile: 316; javascript: 11
file content (21 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <config.h>
#include <gnulib_math.h>
#include <float.h>
#include <math.h>

long double rpl_frexpl (long double x, int *expptr)
{
  if (x == 0.0L || x == -0.0L)
  {
    *expptr = x;
    return x;
  }
  else if (isnanl (x))
    return x;
  else if (isinf (x))
    return x;
#ifndef _MSC_VER
#undef frexpl
#endif
  return frexpl (x, expptr);
}