mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use C99-defined macros to classify a floating-point number
This commit is contained in:
parent
3711467362
commit
04be8e84db
Notes:
git
2021-08-27 15:41:07 +09:00
15 changed files with 11 additions and 205 deletions
|
|
@ -7,21 +7,6 @@ reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
|
|||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <float.h>
|
||||
# if !defined __MINGW32__ || defined __NO_ISOCEXT
|
||||
# ifndef isnan
|
||||
# define isnan(x) _isnan(x)
|
||||
# endif
|
||||
# ifndef isinf
|
||||
# define isinf(x) (!_finite(x) && !_isnan(x))
|
||||
# endif
|
||||
# ifndef finite
|
||||
# define finite(x) _finite(x)
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
static double q_gamma(double, double, double);
|
||||
|
||||
/* Incomplete gamma function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue