Changeset 3c0e63d in git


Ignore:
Timestamp:
Sep 4, 2012, 11:57:39 AM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '2234726c50d679d6664181a5c72f75a6fd64a787')
Children:
1682691e14d2ada5e1f0a4a4a753b3d05080e7d0
Parents:
f7e9c67cb4e8170fbee30198fd067c7aaee098fc
git-author:
Martin Lee <martinlee84@web.de>2012-09-04 11:57:39+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-09-05 15:00:02+02:00
Message:
chg: avoid divisions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/int_poly.cc

    rf7e9c6 r3c0e63d  
    22272227InternalPoly::reduceTermList ( termList first, termList redterms, termList & last )
    22282228{
    2229     CanonicalForm coeff = redterms->coeff;
     2229    CanonicalForm coeff = CanonicalForm (1)/redterms->coeff;
    22302230    CanonicalForm newcoeff;
    22312231    int newexp;
     
    22342234    while ( first && ( first->exp >= exp ) )
    22352235    {
    2236         newcoeff = first->coeff / coeff;
     2236        newcoeff = first->coeff * coeff;
    22372237        newexp = first->exp - exp;
    22382238        dummy = first;
Note: See TracChangeset for help on using the changeset viewer.