mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* sprintf.c: include ieeefp.h to refer isinf.
* ext/bigdecimal/bigdecimal.c: ditto. * ext/json/ext/generator/generator.c: ditto. * rational.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ac6fd9384d
commit
104e841390
5 changed files with 26 additions and 0 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Thu Jul 3 01:23:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* sprintf.c: include ieeefp.h to refer isinf.
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c: ditto.
|
||||
|
||||
* ext/json/ext/generator/generator.c: ditto.
|
||||
|
||||
* rational.c: ditto.
|
||||
|
||||
Thu Jul 3 01:01:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* missing/tgamma.c (tgamma): remove unused variable.
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
#include <float.h>
|
||||
#include <math.h>
|
||||
#include "math.h"
|
||||
|
||||
#ifdef HAVE_IEEEFP_H
|
||||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
/* #define ENABLE_NUMERIC_STRING */
|
||||
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef HAVE_IEEEFP_H
|
||||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
#define check_max_nesting(state, depth) do { \
|
||||
long current_nesting = 1 + depth; \
|
||||
if (state->max_nesting != 0 && current_nesting > state->max_nesting) \
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
#define NDEBUG
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef HAVE_IEEEFP_H
|
||||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
#ifndef RATIONAL_NAME
|
||||
#define RATIONAL_NAME "Rational"
|
||||
#endif
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef HAVE_IEEEFP_H
|
||||
#include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
#define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */
|
||||
#define BITSPERDIG (SIZEOF_BDIGITS*CHAR_BIT)
|
||||
#define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n)))
|
||||
|
|
Loading…
Reference in a new issue