1#ifndef RBIMPL_INTERN_COMPLEX_H
2#define RBIMPL_INTERN_COMPLEX_H
50#define rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0))
53#define rb_complex_raw2(x,y) rb_complex_raw((x), (y))
74#define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0))
77#define rb_complex_new2(x,y) rb_complex_new((x), (y))
202VALUE rb_dbl_complex_new(
double real,
double imag);
205#define rb_complex_add rb_complex_plus
208#define rb_complex_sub rb_complex_minus
211#define rb_complex_nagate rb_complex_uminus
246#define rb_Complex1(x) rb_Complex((x), INT2FIX(0))
249#define rb_Complex2(x,y) rb_Complex((x), (y))
Defines RBIMPL_ATTR_DEPRECATED.
#define RBIMPL_ATTR_DEPRECATED(msg)
Wraps (or simulates) [[deprecated]]
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
VALUE rb_complex_polar(VALUE x, VALUE y)
Old name of rb_complex_new_polar.
VALUE rb_complex_uminus(VALUE z)
Performs negation of the passed object.
VALUE rb_complex_new(VALUE real, VALUE imag)
Constructs a Complex, by first multiplying the imaginary part with 1i then adds it to the real part.
VALUE rb_complex_plus(VALUE x, VALUE y)
Performs addition of the passed two objects.
VALUE rb_complex_new_polar(VALUE abs, VALUE arg)
Constructs a Complex using polar representations.
VALUE rb_complex_raw(VALUE real, VALUE imag)
Identical to rb_complex_new(), except it assumes both arguments are not instances of rb_cComplex.
VALUE rb_Complex(VALUE real, VALUE imag)
Converts various values into a Complex.
VALUE rb_complex_minus(VALUE x, VALUE y)
Performs subtraction of the passed two objects.
Arithmetic conversion between C's long and Ruby's.
Defines RBIMPL_ATTR_PURE.
#define RBIMPL_ATTR_PURE()
Wraps (or simulates) __attribute__((pure))
uintptr_t VALUE
Type that represents a Ruby object.