mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
big: More ZII refactoring.
This commit is contained in:
@@ -12,9 +12,14 @@ package big
|
||||
*/
|
||||
|
||||
import "core:intrinsics"
|
||||
import "core:mem"
|
||||
|
||||
int_is_initialized :: proc(a: ^Int) -> bool {
|
||||
return a != rawptr(uintptr(0)) && a.allocated >= _MIN_DIGIT_COUNT;
|
||||
if a == nil {
|
||||
return false;
|
||||
}
|
||||
raw := transmute(mem.Raw_Dynamic_Array)a.digit;
|
||||
return raw.cap >= _MIN_DIGIT_COUNT;
|
||||
}
|
||||
|
||||
int_is_zero :: proc(a: ^Int) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user