big: Add shl, shr and shrmod.

This commit is contained in:
Jeroen van Rijn
2021-07-22 23:00:36 +02:00
parent d4d863c4db
commit f34ba44bf8
4 changed files with 218 additions and 27 deletions
+4 -4
View File
@@ -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));