mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-10 14:27:36 +02:00
WIP - bignum2
This commit is contained in:
parent
6d58017620
commit
79f4a1f4ea
1 changed files with 16 additions and 0 deletions
|
@ -833,6 +833,22 @@ typedef struct {
|
|||
} \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Exact integer of unlimited precision.
|
||||
*
|
||||
* TODO: describe this type
|
||||
*
|
||||
* Note memory is allocated directly on the heap to allow for numeric optimizations
|
||||
* that can be performed if the amount of stack space used per allocation remains constant.
|
||||
*/
|
||||
typedef struct {
|
||||
gc_header_type hdr;
|
||||
tag_type tag;
|
||||
uint32_t num_digits;
|
||||
uint32_t sign;
|
||||
// TODO: digits (implicit, after object??)
|
||||
} bignum2_type;
|
||||
|
||||
/**
|
||||
* @brief Complex number
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue