Changeset 287cc8 in git for ntl/include/NTL/ZZ.h


Ignore:
Timestamp:
Jan 5, 2010, 5:51:13 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3c38b3810fd61108b01f123f5a91e13ccff52b20
Parents:
1d43d184dd871d77c1ba8e095d768f22a0fbe92f
Message:
ntl 5.5.2

git-svn-id: file:///usr/local/Singular/svn/trunk@12402 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ntl/include/NTL/ZZ.h

    r1d43d18 r287cc8  
    421421  { mul(x, x, a); return x; }
    422422
     423// x += a*b
     424
     425inline void
     426MulAddTo(ZZ& x, const ZZ& a, long b)
     427{
     428   NTL_zsaddmul(a.rep, b, &x.rep);
     429}
     430
     431inline void
     432MulAddTo(ZZ& x, const ZZ& a, const ZZ& b)
     433{
     434   NTL_zaddmul(a.rep, b.rep, &x.rep);
     435}
     436
     437// x -= a*b
     438
     439inline void
     440MulSubFrom(ZZ& x, const ZZ& a, long b)
     441{
     442   NTL_zssubmul(a.rep, b, &x.rep);
     443}
     444
     445inline void
     446MulSubFrom(ZZ& x, const ZZ& a, const ZZ& b)
     447{
     448   NTL_zsubmul(a.rep, b.rep, &x.rep);
     449}
     450
    423451
    424452// Special routines for implementing CRT in ZZ_pX arithmetic
Note: See TracChangeset for help on using the changeset viewer.