From d769c93ef5965aea956171b8622e976a0a7c2863 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 12 Jun 2026 12:14:34 +0300 Subject: feat(BigInt): Replace B_bytes with B_bits --- BigInt.c | 4 ++-- BigInt.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BigInt.c b/BigInt.c index ec4f4ee..3b05e7f 100644 --- a/BigInt.c +++ b/BigInt.c @@ -452,10 +452,10 @@ B_lshift(BigInt *intx, usize shift) { /* Get */ usize -B_bytes(const BigInt x) { +B_bits(const BigInt x) { if (NULL == x) return 0; - return B_metadata(x)->words * sizeof(UWord); + return B_metadata(x)->words * UWORD_BIT; } usize diff --git a/BigInt.h b/BigInt.h index 9eb52a4..939d1d1 100644 --- a/BigInt.h +++ b/BigInt.h @@ -30,7 +30,7 @@ Result B_lshift(BigInt *x, usize shift); /* Get */ -usize B_bytes(const BigInt x); +usize B_bits(const BigInt x); usize B_bitwidth(const BigInt x); char* B_tostr(MemoryManager *mm, const BigInt x); -- cgit v1.2.3