From 7e0b603b78adf4c1704b757da05d085e03afe5f6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 23 May 2026 09:56:17 +0300 Subject: feat(BigInt): Implement bit shifts and add math in example --- BigInt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'BigInt.h') diff --git a/BigInt.h b/BigInt.h index 2324143..913e249 100644 --- a/BigInt.h +++ b/BigInt.h @@ -9,6 +9,7 @@ typedef void* BigInt; BigInt B_new(MemoryManager *mm, int value); BigInt B_newstr(MemoryManager *mm, const char* str); +BigInt B_newbytes(MemoryManager *mm, usize bytes); BigInt B_dup(MemoryManager *mm, BigInt bigint); BigInt B_newsum(MemoryManager *mm, BigInt a, BigInt b); @@ -22,6 +23,8 @@ Result B_free(BigInt *bigint); Result B_sum(BigInt *a, BigInt b); Result B_sub(BigInt *a, BigInt b); +Result B_rshift(BigInt *x, usize shift); +Result B_lshift(BigInt *x, usize shift); /* Get */ -- cgit v1.2.3