Ruby 3.3.2p78 (2024-05-30 revision e5a195edf62fe1bf7146a191da13fa1c4fecbd71)
|
Routines to manipulate struct RBignum. More...
#include "ruby/internal/dllexport.h"
#include "ruby/internal/value.h"
#include "ruby/internal/value_type.h"
#include "ruby/internal/stdbool.h"
Go to the source code of this file.
Macros | |
#define | RBIGNUM_SIGN rb_big_sign |
Just another name of rb_big_sign | |
Functions | |
int | rb_big_sign (VALUE num) |
The "sign" of a bignum. | |
static bool | RBIGNUM_POSITIVE_P (VALUE b) |
Checks if the bignum is positive. | |
static bool | RBIGNUM_NEGATIVE_P (VALUE b) |
Checks if the bignum is negative. | |
Routines to manipulate struct RBignum.
RBIMPL
or rbimpl
are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will. __VA_ARGS__
is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98. Definition in file rbignum.h.
#define RBIGNUM_SIGN rb_big_sign |
Just another name of rb_big_sign
Definition at line 29 of file rbignum.h.
Referenced by RBIGNUM_POSITIVE_P().
int rb_big_sign | ( | VALUE | num | ) |
|
inlinestatic |
|
inlinestatic |
Checks if the bignum is positive.
[in] | b | An object of RBignum. |
false | b is less than zero. |
true | Otherwise. |
Definition at line 61 of file rbignum.h.
Referenced by RBIGNUM_NEGATIVE_P().