Skip to content
#

bignumbers

Here are 25 public repositories matching this topic...

aameen951
aameen951 commented May 11, 2020

Sorry for not submitting a pull request, I'm working on a bignum library and I saw your implementation of multiplication so I just want to point out that you can simplify it by doing the multiply and the add in one loop into the result bn as follow:

typedef unsigned int           u32;
typedef unsigned long long int u64;
void _bn_add_mul_u32(u32 *out, u32 *a, size_t a_len, u32 b)
{
mgorzkowski
mgorzkowski commented May 5, 2021

There are lots of operations already implemented, but still, there are no division algorithms implemented.
It should be done similarly to the abn_mul algorithm.

Prototypes are:
void abn_div(abn_t *result, abn_t *arg_a, abn_t *arg_b); - for division one abn_t by another abn_t (unsigned)
void abn_divu(abn_t *result, abn_t *arg_a, abn_unit value); - for division one abn_t by abn_unit
void abn

enhancement good first issue

Improve this page

Add a description, image, and links to the bignumbers topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the bignumbers topic, visit your repo's landing page and select "manage topics."

Learn more