Changeset bffe62d in git for factory/facHensel.cc


Ignore:
Timestamp:
Nov 19, 2012, 5:26:28 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8e51caea071beef6e0f3c31472a9553c63c8df6d
Parents:
a209e1d3deac62269a6170eb87b8dd656049e036
git-author:
Martin Lee <martinlee84@web.de>2012-11-19 17:26:28+01:00
git-committer:
Martin Lee <martinlee84@web.de>2012-11-19 18:01:22+01:00
Message:
chg: skip zz_p::init() if it is already correctly initialized
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facHensel.cc

    ra209e1d rbffe62d  
    3939CFList productsNTL (const CFList& factors, const CanonicalForm& M)
    4040{
    41   zz_p::init (getCharacteristic());
     41  if (fac_NTL_char != getCharacteristic())
     42  {
     43    fac_NTL_char= getCharacteristic();
     44    zz_p::init (getCharacteristic());
     45  }
    4246  zz_pX NTLMipo= convertFacCF2NTLzzpX (M);
    4347  zz_pE::init (NTLMipo);
     
    103107#ifdef HAVE_NTL
    104108  Variable x= Variable (1);
    105   zz_p::init (getCharacteristic());
     109  if (fac_NTL_char != getCharacteristic())
     110  {
     111    fac_NTL_char= getCharacteristic();
     112    zz_p::init (getCharacteristic());
     113  }
    106114  zz_pX NTLMipo= convertFacCF2NTLzzpX (M);
    107115  zz_pE::init (NTLMipo);
Note: See TracChangeset for help on using the changeset viewer.