Changeset 31776 in project


Ignore:
Timestamp:
11/04/14 23:26:50 (5 years ago)
Author:
sjamaan
Message:

numbers: More helpful comments for when we ever want to try and re-understand the division algorithm (so we won't have to abandon all hope before we even start)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/numbers/trunk/numbers-c.c

    r31775 r31776  
    33693369          *u = C_bignum_digits(big_u),
    33703370          *q = big_q == C_SCHEME_UNDEFINED ? NULL : C_bignum_digits(big_q),
    3371            p,               /* product of two halfdigits */
     3371           p,               /* product of estimated quotient & "denominator" */
    33723372           hat, qhat, rhat, /* estimated quotient and remainder digit */
    33733373           vn_1, vn_2;      /* "cached" values v[n-1], v[n-2] */
    3374   C_word t, k;              /* Two helper vars */
     3374  C_word t, k;              /* Two helpers: temp/final remainder and "borrow" */
    33753375  /* We use plain ints here, which theoretically may not be enough on
    33763376   * 64-bit for an insanely huge number, but it is a _lot_ faster.
Note: See TracChangeset for help on using the changeset viewer.