Ruby
3.4.0dev (2024-11-05 revision e440268d51fe02b303e3817a7a733a0dac1c5091)
|
A structure represents an arbitrary-sized integer. More...
#include <pm_integer.h>
Data Fields | |
size_t | length |
The number of allocated values. More... | |
uint32_t * | values |
List of 32-bit integers. More... | |
uint32_t | value |
Embedded value for small integer. More... | |
bool | negative |
Whether or not the integer is negative. More... | |
A structure represents an arbitrary-sized integer.
Definition at line 20 of file pm_integer.h.
size_t pm_integer_t::length |
The number of allocated values.
length is set to 0 if the integer fits into uint32_t.
Definition at line 25 of file pm_integer.h.
Referenced by pm_integer_compare(), pm_integer_string(), and pm_integers_reduce().
bool pm_integer_t::negative |
Whether or not the integer is negative.
It is stored this way so that a zeroed pm_integer_t is always positive zero.
Definition at line 42 of file pm_integer.h.
Referenced by pm_integer_compare(), and pm_integer_string().
uint32_t pm_integer_t::value |
Embedded value for small integer.
This value is set to 0 if the value does not fit into uint32_t.
Definition at line 36 of file pm_integer.h.
Referenced by pm_integer_compare(), pm_integer_parse(), pm_integer_string(), and pm_integers_reduce().
uint32_t* pm_integer_t::values |
List of 32-bit integers.
Set to NULL if the integer fits into uint32_t.
Definition at line 30 of file pm_integer.h.
Referenced by pm_integer_compare(), pm_integer_free(), and pm_integer_string().