From db41083fe6a15711f86cae849abe7413bedc6a13 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 28 May 2026 09:51:28 +0300 Subject: feat: Implement bitwise operations --- BigInt.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'BigInt.h') diff --git a/BigInt.h b/BigInt.h index 913e249..d894b35 100644 --- a/BigInt.h +++ b/BigInt.h @@ -23,6 +23,11 @@ Result B_free(BigInt *bigint); Result B_sum(BigInt *a, BigInt b); Result B_sub(BigInt *a, BigInt b); + +Result B_compl(BigInt *x); +Result B_bitand(BigInt *x, BigInt *y); +Result B_bitor(BigInt *x, BigInt *y); +Result B_bitxor(BigInt *x, BigInt *y); Result B_rshift(BigInt *x, usize shift); Result B_lshift(BigInt *x, usize shift); -- cgit v1.2.3