mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-15 23:51:25 -07:00
big: Add shl, shr and shrmod.
This commit is contained in:
@@ -94,11 +94,11 @@ when size_of(rawptr) == 8 {
|
||||
/*
|
||||
We can use u128 as an intermediary.
|
||||
*/
|
||||
DIGIT :: distinct(u64);
|
||||
_WORD :: distinct(u128);
|
||||
DIGIT :: distinct u64;
|
||||
_WORD :: distinct u128;
|
||||
} else {
|
||||
DIGIT :: distinct(u32);
|
||||
_WORD :: distinct(u64);
|
||||
DIGIT :: distinct u32;
|
||||
_WORD :: distinct u64;
|
||||
}
|
||||
#assert(size_of(_WORD) == 2 * size_of(DIGIT));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user