|
Ruby
3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
|
Internal header for Complex. More...
#include "ruby/internal/value.h"

Go to the source code of this file.
Data Structures | |
| struct | RComplex |
Macros | |
| #define | RCOMPLEX(obj) ((struct RComplex *)(obj)) |
| #define | RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->real, (r)) |
| #define | RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->imag, (i)) |
Functions | |
| VALUE | rb_dbl_complex_new_polar_pi (double abs, double ang) |
| st_index_t | rb_complex_hash (VALUE comp) |
Internal header for Complex.
Definition in file complex.h.
| #define RCOMPLEX_SET_IMAG | ( | cmp, | |
| i | |||
| ) | RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->imag, (i)) |
| #define RCOMPLEX_SET_REAL | ( | cmp, | |
| r | |||
| ) | RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->real, (r)) |
| st_index_t rb_complex_hash | ( | VALUE | comp | ) |
Definition at line 1326 of file complex.c.
References get_dat1, NUM2LONG, rb_hash(), and rb_memhash().
Referenced by rb_iseq_cdhash_hash().
1.8.17