Changeset 32539 in project


Ignore:
Timestamp:
07/04/15 13:10:28 (5 years ago)
Author:
sjamaan
Message:

numbers: Reduce allocation in bignum_divrem by a small amount

File:
1 edited

Legend:

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

    r32531 r32539  
    31393139                          k, x, y, return_q, return_r);
    31403140    } else if (C_truep(return_q)) {
    3141       C_word kab[C_SIZEOF_FIX_BIGNUM+C_SIZEOF_CLOSURE(9)], *ka = kab, k2;
     3141      C_word kab[C_SIZEOF_CLOSURE(9)], *ka = kab, k2;
    31423142      k2 = C_closure(&ka, 9, (C_word)bignum_divide_2_unsigned, k, x, y,
    31433143                     return_q, return_r, r_negp,
     
    31473147      C_allocate_bignum(5, (C_word)NULL, k2, size, q_negp, C_SCHEME_FALSE);
    31483148    } else { /* We can skip bignum_divide_2_unsigned if we need no quotient */
    3149       C_word kab[C_SIZEOF_FIX_BIGNUM+C_SIZEOF_CLOSURE(9)], *ka = kab, k2;
     3149      C_word kab[C_SIZEOF_CLOSURE(9)], *ka = kab, k2;
    31503150      k2 = C_closure(&ka, 9, (C_word)bignum_divide_2_unsigned_2, k, x, y,
    31513151                     return_q, return_r, r_negp,
Note: See TracChangeset for help on using the changeset viewer.