missing.h: isfinite
* include/ruby/missing.h (isfinite): move from numeric.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d45c09fb12
commit
88cc25f96d
@ -1,3 +1,7 @@
|
|||||||
|
Mon May 23 21:33:36 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* include/ruby/missing.h (isfinite): move from numeric.c.
|
||||||
|
|
||||||
Mon May 23 21:09:06 2016 Kazuki Yamaguchi <k@rhe.jp>
|
Mon May 23 21:09:06 2016 Kazuki Yamaguchi <k@rhe.jp>
|
||||||
|
|
||||||
* ext/openssl/ossl.c (Init_openssl): Avoid reference to unset global
|
* ext/openssl/ossl.c (Init_openssl): Avoid reference to unset global
|
||||||
|
@ -30,10 +30,6 @@
|
|||||||
#include <ieeefp.h>
|
#include <ieeefp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_ISFINITE) && defined(HAVE_FINITE) && !defined(isfinite)
|
|
||||||
# define isfinite(x) finite(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* #define ENABLE_NUMERIC_STRING */
|
/* #define ENABLE_NUMERIC_STRING */
|
||||||
|
|
||||||
#define MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, min, max) ( \
|
#define MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, min, max) ( \
|
||||||
|
@ -174,6 +174,13 @@ RUBY_EXTERN int isnan(double);
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef isfinite
|
||||||
|
# ifndef HAVE_ISFINITE
|
||||||
|
# define HAVE_ISFINITE 1
|
||||||
|
# define isfinite(x) finite(x)
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_NEXTAFTER
|
#ifndef HAVE_NEXTAFTER
|
||||||
RUBY_EXTERN double nextafter(double x, double y);
|
RUBY_EXTERN double nextafter(double x, double y);
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,14 +24,6 @@
|
|||||||
#include <ieeefp.h>
|
#include <ieeefp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined HAVE_ISFINITE && !defined isfinite
|
|
||||||
#if defined HAVE_FINITE && !defined finite && !defined _WIN32
|
|
||||||
extern int finite(double);
|
|
||||||
# define HAVE_ISFINITE 1
|
|
||||||
# define isfinite(x) finite(x)
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* use IEEE 64bit values if not defined */
|
/* use IEEE 64bit values if not defined */
|
||||||
#ifndef FLT_RADIX
|
#ifndef FLT_RADIX
|
||||||
#define FLT_RADIX 2
|
#define FLT_RADIX 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user