|
Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
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.
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(), and RBIGNUM_POSITIVE_P().