Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division algorithms implementation #4

Open
mgorzkowski opened this issue May 5, 2021 · 0 comments
Open

Division algorithms implementation #4

mgorzkowski opened this issue May 5, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mgorzkowski
Copy link
Owner

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_sdiv(abn_t *result, abn_t *arg_a, abn_t *arg_b); - for division one abn_t by another abn_t (signed)

Implementation should be placed in src/operations/multiplicative.c
Prototypes should be placed in include/abn.h

There are also some tests to write. Look at the test directory.

@mgorzkowski mgorzkowski added enhancement New feature or request good first issue Good for newcomers labels May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant