Skip to content

Commit

Permalink
Add a clarification to a comment
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin D. Howard <[email protected]>
  • Loading branch information
gavinhoward committed Jun 14, 2024
1 parent 32ab0be commit 321d819
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/num.c
Original file line number Diff line number Diff line change
Expand Up @@ -1956,6 +1956,9 @@ bc_num_d(BcNum* a, BcNum* b, BcNum* restrict c, size_t scale)
// actual algorithm easier to understand because it can assume a lot of
// things. Thus, you should view all of this setup code as establishing
// assumptions for bc_num_d_long(), where the actual division happens.
//
// But in short, this setup makes it so bc_num_d_long() can pretend the
// numbers are integers.
if (cpardx == cpa.len) cpa.len = bc_num_nonZeroLen(&cpa);
if (BC_NUM_RDX_VAL_NP(cpb) == cpb.len) cpb.len = bc_num_nonZeroLen(&cpb);
cpb.scale = 0;
Expand Down

0 comments on commit 321d819

Please sign in to comment.