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