diff options
| author | Syndamia <kamen@syndamia.com> | 2026-06-12 12:14:34 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-07-12 09:14:06 +0300 |
| commit | d769c93ef5965aea956171b8622e976a0a7c2863 (patch) | |
| tree | 07f117c1a8940e749cf8c6f832d8ad4c8ace13f0 | |
| parent | dc5d2d68ca0be3c82a65975d297fa69b5c3b3a13 (diff) | |
| download | foollib-d769c93ef5965aea956171b8622e976a0a7c2863.tar foollib-d769c93ef5965aea956171b8622e976a0a7c2863.tar.gz foollib-d769c93ef5965aea956171b8622e976a0a7c2863.zip | |
feat(BigInt): Replace B_bytes with B_bits
| -rw-r--r-- | BigInt.c | 4 | ||||
| -rw-r--r-- | BigInt.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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); |
