Changeset 09775c in git for libpolys


Ignore:
Timestamp:
Mar 2, 2022, 10:01:49 AM (2 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
fe4754c768f6e7c9aa8e0f5b9875e689a44095d2
Parents:
fd4d5ba53e5622d16b114e3fc72a6fc0db9a7616
Message:
opt: ntPower via ntInpMult
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    rfd4d5b r09775c  
    13391339    for (int i = 2; i <= expAbs; i++)
    13401340    {
    1341       t = ntMult(pow, a, cf);
    1342       ntDelete(&pow, cf);
    1343       pow = t;
     1341      ntInpMult(pow, a, cf);
    13441342      heuristicGcdCancellation(pow, cf);
    13451343    }
     
    13531351      if (expAbs & 1)
    13541352      {
    1355         t = ntMult(pow, factor, cf);
    1356         ntDelete(&pow, cf);
    1357         pow = t;
     1353        ntInpMult(pow, factor, cf);
    13581354        heuristicGcdCancellation(pow, cf);
    13591355      }
     
    13611357      if (expAbs != 0)
    13621358      {
    1363         t = ntMult(factor, factor, cf);
    1364         ntDelete(&factor, cf);
    1365         factor = t;
     1359        ntInpMult(factor, factor, cf);
    13661360        heuristicGcdCancellation(factor, cf);
    13671361      }
Note: See TracChangeset for help on using the changeset viewer.