Changeset 7453b4 in git


Ignore:
Timestamp:
Jan 27, 2012, 2:50:24 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
f3cdf9e5f707acda78af0e21e064d4b843c72a1a
Parents:
5e17976a905ed4b96978d782901ce629d68cadb7
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-01-27 14:50:24+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-01-27 14:51:08+01:00
Message:
chg: farey changes from master
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_chinese.cc

    r5e1797 r7453b4  
    198198    CanonicalForm c;
    199199    CFIterator i;
     200#ifdef HAVE_NTL
     201    ZZ NTLq= convertFacCF2NTLZZ (q);
     202    ZZ bound;
     203    SqrRoot (bound, NTLq/2);
     204#endif
    200205    for ( i = f; i.hasTerms(); i++ )
    201206    {
     
    210215            if (lessZero)
    211216              NTL::negate (NTLc, NTLc);
    212             ZZ NTLq= convertFacCF2NTLZZ (q);
    213             ZZ bound;
    214             SqrRoot (bound, NTLq/2);
    215217            ZZ NTLnum, NTLden;
    216218            if (ReconstructRational (NTLnum, NTLden, NTLc, NTLq, bound, bound))
  • libpolys/coeffs/longrat.cc

    r5e1797 r7453b4  
    25632563       break;
    25642564    }
    2565     mpz_mod(D,E,N);
    2566     mpz_div(tmp,E,N);
     2565    //mpz_mod(D,E,N);
     2566    //mpz_div(tmp,E,N);
     2567    mpz_divmod(tmp,D,E,N);
    25672568    mpz_mul(tmp,tmp,B);
    25682569    mpz_sub(C,A,tmp);
Note: See TracChangeset for help on using the changeset viewer.