Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ruby/config.h"
#include <stddef.h>
#include <math.h>
Go to the source code of this file.
Data Structures | |
struct | timeval |
struct | timespec |
struct | timezone |
union | bytesequence4_or_float |
Macros | |
#define | M_PI 3.14159265358979323846 |
#define | M_PI_2 (M_PI/2) |
#define | RUBY_SYMBOL_EXPORT_BEGIN /* begin */ |
#define | RUBY_SYMBOL_EXPORT_END /* end */ |
#define | RUBY_EXTERN extern |
#define | INFINITY (rb_infinity.float_value) |
#define | NAN (rb_nan.float_value) |
#define | HAVE_ISFINITE 1 |
#define | isfinite(x) finite(x) |
Functions | |
RUBY_SYMBOL_EXPORT_BEGIN RUBY_EXTERN double | acosh (double) |
RUBY_EXTERN double | asinh (double) |
RUBY_EXTERN double | atanh (double) |
RUBY_EXTERN char * | crypt (const char *, const char *) |
RUBY_EXTERN int | dup2 (int, int) |
RUBY_EXTERN int | eaccess (const char *, int) |
RUBY_EXTERN double | round (double) |
RUBY_EXTERN int | finite (double) |
RUBY_EXTERN int | flock (int, int) |
RUBY_EXTERN double | hypot (double, double) |
RUBY_EXTERN double | erf (double) |
RUBY_EXTERN double | erfc (double) |
RUBY_EXTERN double | tgamma (double) |
RUBY_EXTERN double | lgamma_r (double, int *) |
RUBY_EXTERN double | cbrt (double) |
RUBY_EXTERN int | isinf (double) |
RUBY_EXTERN int | isnan (double) |
RUBY_EXTERN double | nextafter (double x, double y) |
RUBY_EXTERN void * | memmove (void *, const void *, size_t) |
RUBY_EXTERN char * | strchr (const char *, int) |
RUBY_EXTERN char * | strrchr (const char *, int) |
RUBY_EXTERN char * | strerror (int) |
RUBY_EXTERN char * | strstr (const char *, const char *) |
RUBY_EXTERN size_t | strlcpy (char *, const char *, size_t) |
RUBY_EXTERN size_t | strlcat (char *, const char *, size_t) |
RUBY_EXTERN int | signbit (double x) |
RUBY_EXTERN int | ffs (int) |
RUBY_EXTERN void | setproctitle (const char *fmt,...) |
RUBY_EXTERN void | explicit_bzero (void *b, size_t len) |
Variables | |
RUBY_EXTERN const union bytesequence4_or_float | rb_infinity |
RUBY_EXTERN const union bytesequence4_or_float | rb_nan |
#define INFINITY (rb_infinity.float_value) |
Definition at line 149 of file missing.h.
Referenced by big_fdiv(), enum_cycle_size(), enumerator_initialize(), fix_pow(), flo_next_float(), flo_prev_float(), Init_date_core(), Init_Numeric(), math_atanh(), math_erfc(), math_lgamma(), math_log1(), math_log10(), math_log2(), num_step_scan_args(), r_object0(), rb_ary_cycle_size(), rb_f_loop_size(), ruby_float_step_size(), and ruby_num_interval_step_size().
#define isfinite | ( | x | ) | finite(x) |
Definition at line 180 of file missing.h.
Referenced by BigDecimal_new(), flo_is_finite_p(), flo_round(), and GetVpValueWithPrec().
#define M_PI 3.14159265358979323846 |
Definition at line 41 of file missing.h.
Referenced by exp1(), f_complex_polar(), math_atan2(), and numeric_arg().
#define M_PI_2 (M_PI/2) |
Definition at line 44 of file missing.h.
Referenced by f_complex_polar().
#define NAN (rb_nan.float_value) |
Definition at line 155 of file missing.h.
Referenced by Init_Numeric(), nurat_expt(), r_object0(), and rb_int_fdiv_double().
#define RUBY_EXTERN extern |
Definition at line 77 of file missing.h.
Referenced by Init_dbm().
#define RUBY_SYMBOL_EXPORT_BEGIN /* begin */ |
Definition at line 48 of file missing.h.
Referenced by Init_Cont(), Init_vm_backtrace(), and is_global_name_punct().
#define RUBY_SYMBOL_EXPORT_END /* end */ |
Definition at line 49 of file missing.h.
Referenced by Init_vm_backtrace(), is_global_name_punct(), and ruby_Init_Fiber_as_Coroutine().
RUBY_SYMBOL_EXPORT_BEGIN RUBY_EXTERN double acosh | ( | double | ) |
RUBY_EXTERN double asinh | ( | double | ) |
Definition at line 52 of file acosh.c.
References BIG_CRITERIA, DBL_MANT_DIG, neg, and SMALL_CRITERIA.
Referenced by math_asinh().
RUBY_EXTERN double atanh | ( | double | ) |
Definition at line 75 of file acosh.c.
References errno, isinf(), neg, and SMALL_CRITERIA.
Referenced by math_atanh().
RUBY_EXTERN double cbrt | ( | double | ) |
Definition at line 4 of file cbrt.c.
Referenced by math_cbrt().
RUBY_EXTERN char* crypt | ( | const char * | , |
const char * | |||
) |
Referenced by rb_str_crypt().
RUBY_EXTERN int dup2 | ( | int | , |
int | |||
) |
Definition at line 27 of file dup2.c.
References BADEXIT, errno, F_DUPFD, and fcntl().
Referenced by chfunc(), close_unless_reserved(), fill_standard_fds(), goruby_options(), main(), rb_cloexec_dup2(), rb_pipe(), rb_w32_dup2(), and reopen_fd().
RUBY_EXTERN int eaccess | ( | const char * | , |
int | |||
) |
Definition at line 1267 of file file.c.
References access, getegid(), geteuid(), getgid(), getuid(), rb_group_member(), S_IXUGO, STAT, and X_OK.
Referenced by dln_find_1(), rb_file_executable_p(), rb_file_readable_p(), and rb_file_writable_p().
RUBY_EXTERN double erf | ( | double | ) |
Definition at line 71 of file erf.c.
References finite(), isnan, LOG_PI_OVER_2, and p_gamma().
Referenced by math_erf().
RUBY_EXTERN double erfc | ( | double | ) |
Definition at line 81 of file erf.c.
References finite(), isnan, LOG_PI_OVER_2, p_gamma(), and q_gamma().
Referenced by math_erfc().
RUBY_EXTERN void explicit_bzero | ( | void * | b, |
size_t | len | ||
) |
Definition at line 71 of file explicit_bzero.c.
Referenced by init_randomseed(), Init_RandomSeedCore(), rand_init(), and random_seed().
RUBY_EXTERN int ffs | ( | int | ) |
Definition at line 6 of file ffs.c.
Referenced by big2str_base_poweroftwo(), and rb_str_format().
RUBY_EXTERN int finite | ( | double | ) |
RUBY_EXTERN int flock | ( | int | , |
int | |||
) |
RUBY_EXTERN double hypot | ( | double | , |
double | |||
) |
Definition at line 6 of file hypot.c.
Referenced by math_hypot().
RUBY_EXTERN int isinf | ( | double | ) |
Definition at line 56 of file isinf.c.
References inf(), and memcmp().
Referenced by atanh(), BigMath_s_exp(), BigMath_s_log(), BSD_vfprintf(), c_valid_start_p(), c_virtual_sg(), dbl2big(), finite(), flo_cmp(), flo_is_finite_p(), flo_is_infinite_p(), flo_to_s(), float_denominator(), float_numerator(), float_value(), flodivmod(), generate_json_float(), guess_style(), m_julian_p(), m_proleptic_gregorian_p(), m_proleptic_julian_p(), math_atan2(), math_erfc(), math_gamma(), math_lgamma(), nextafter(), num_step(), rand_range(), rb_big2dbl(), rb_big_fdiv_double(), rb_complex_finite_p(), rb_complex_infinite_p(), rb_integer_float_cmp(), rb_integer_float_eq(), rb_str_format(), ruby_float_step(), ruby_float_step_size(), ruby_hdtoa(), ruby_num_interval_step_size(), s_virtual_sg(), tanh(), VpDtoV(), and w_float().
RUBY_EXTERN int isnan | ( | double | ) |
Definition at line 22 of file isnan.c.
References double_ne().
RUBY_EXTERN double lgamma_r | ( | double | , |
int * | |||
) |
Definition at line 63 of file lgamma_r.c.
References errno, f, LOG_PI, loggamma(), PI, and signbit().
Referenced by math_erfc(), and math_lgamma().
RUBY_EXTERN void* memmove | ( | void * | , |
const void * | , | ||
size_t | |||
) |
Definition at line 7 of file memmove.c.
Referenced by base64_conv(), BigDecimal_split(), delpair(), extract_fd(), ffi_prep_args(), ffi_v9_layout_struct(), fill_cbuf(), flo_to_s(), io_shift_cbuf(), parse_rational(), rb_ary_sample(), rb_str_drop_bytes(), rb_str_lstrip_bang(), rb_str_splice_0(), rb_str_strip_bang(), rb_str_sub_bang(), rb_w32_fdclr(), rb_w32_strerror(), remove_backslashes(), str_succ(), strio_unget_bytes(), strio_write(), sym_inspect(), VpFormatSt(), VpNmlz(), yaml_parser_update_buffer(), yaml_parser_update_raw_buffer(), yaml_queue_extend(), zstream_buffer_ungets(), and zstream_shift_buffer().
RUBY_EXTERN double nextafter | ( | double | x, |
double | y | ||
) |
Definition at line 9 of file nextafter.c.
References DBL_EPSILON, DBL_MANT_DIG, DBL_MAX, DBL_MIN, DBL_MIN_EXP, isinf(), and isnan.
Referenced by flo_next_float(), and flo_prev_float().
RUBY_EXTERN double round | ( | double | ) |
Definition at line 79 of file numeric.c.
References f.
Referenced by BigDecimal_power(), d_lite_plus(), fix_pow(), flo_round(), flodivmod(), offset_to_sec(), rb_big_pow(), rb_float_pow(), round_half_down(), round_half_up(), and wholenum_p().
RUBY_EXTERN void setproctitle | ( | const char * | fmt, |
... | |||
) |
Definition at line 139 of file setproctitle.c.
References len, NULL, SPT_PADCHAR, strlcpy(), strlen(), and vsnprintf.
Referenced by proc_setproctitle().
RUBY_EXTERN int signbit | ( | double | x | ) |
Definition at line 5 of file signbit.c.
References CHAR_BIT.
Referenced by f_signbit(), flo_truncate(), lgamma_r(), math_atan2(), math_erfc(), math_gamma(), math_lgamma(), num_step(), and safe_mul().
RUBY_EXTERN char* strchr | ( | const char * | , |
int | |||
) |
RUBY_EXTERN char* strerror | ( | int | ) |
Definition at line 11 of file strerror.c.
References msg, and sys_errlist.
Referenced by argf_next_argv(), cont_restore_thread(), dln_load(), dln_strerror(), init_libraries_if_necessary(), inspect_errno(), Messaging_HandleMessage(), open_load_file(), ossl_x509_new_from_file(), rb_bug_errno(), rb_fix_detect_o_cloexec(), rb_maygvl_fd_fix_cloexec(), rb_sys_enc_warning(), rb_sys_warning(), rb_w32_strerror(), rsock_detect_cloexec(), syserr_initialize(), and thread_create_core().
RUBY_EXTERN size_t strlcat | ( | char * | , |
const char * | , | ||
size_t | |||
) |
Definition at line 31 of file strlcat.c.
References strlen().
Referenced by rb_file_expand_path_internal(), and w32_aspawn_flags().
RUBY_EXTERN size_t strlcpy | ( | char * | , |
const char * | , | ||
size_t | |||
) |
Definition at line 29 of file strlcpy.c.
Referenced by cmdglob(), date_strftime_with_tmx(), dln_find_1(), get_device_once(), rb_feature_p(), rb_strftime_with_timespec(), rb_w32_strerror(), ruby_brace_expand(), ruby_init_loadpath_safe(), setproctitle(), w32_aspawn_flags(), and w32_cmdvector().
RUBY_EXTERN char* strrchr | ( | const char * | , |
int | |||
) |
RUBY_EXTERN char* strstr | ( | const char * | , |
const char * | |||
) |
Definition at line 8 of file strstr.c.
References strlen().
Referenced by load_file_internal(), and Messaging_HandleMessage().
RUBY_EXTERN double tgamma | ( | double | ) |
Definition at line 72 of file tgamma.c.
References errno, f, loggamma(), PI, and zero().
Referenced by math_erfc(), and math_gamma().
RUBY_EXTERN const union bytesequence4_or_float rb_infinity |
RUBY_EXTERN const union bytesequence4_or_float rb_nan |