File: isinf.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 (30 lines) | stat: -rw-r--r-- 449 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
22
23
24
25
26
27
28
29
30
#ifndef _MSC_VER
#error "This implementation is currently supported for Visual Studio only!"
#endif

#include "config.h"
#include <gnulib_math.h>
#include <float.h>
#include <math.h>

int
gl_isinff (float x)
{
#if defined (_WIN64) && (defined (_M_X64) || defined (_M_AMD64))
  return !_finitef (x);
#else
  return !_finite (x);
#endif
}

int
gl_isinfd (double x)
{
  return !_finite (x);
}

int
gl_isinfl (long double x)
{
  return gl_isinfd (x);
}