Changeset 603aebf in git


Ignore:
Timestamp:
Apr 15, 2010, 6:22:30 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
a604c3a46abd7b2318d7828804705a9ca0a249bf
Parents:
ad36a11446cb8f65d69a1ca7d2db339062d69f59
Message:
some old gmp functions removed

git-svn-id: file:///usr/local/Singular/svn/trunk@12727 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/longrat.cc

    rad36a1 r603aebf  
    13611361    return i%p;
    13621362  }
    1363   int iz=(int)mpz_mmod_ui(NULL,&n->z,(unsigned long)p);
     1363  int iz=(int)mpz_fdiv_ui(&n->z,(unsigned long)p);
    13641364  if (n->s!=3)
    13651365  {
    1366     int in=mpz_mmod_ui(NULL,&n->n,(unsigned long)p);
     1366    int in=mpz_fdiv_ui(&n->n,(unsigned long)p);
    13671367    #ifdef NV_OPS
    13681368    if (npPrimeM>NV_MAX_PRIME)
  • kernel/modulop.cc

    rad36a1 r603aebf  
    469469    ndest->_mp_alloc = ndest->_mp_size = bl;
    470470    res->s = 0;
    471     in=mpz_mmod_ui(NULL,ndest,npPrimeM);
     471    in=mpz_fdiv_ui(ndest,npPrimeM);
    472472    mpz_clear(ndest);
    473473  }
     
    484484  dest->_mp_d = dd;
    485485  dest->_mp_alloc = al;
    486   iz=mpz_mmod_ui(NULL,dest,npPrimeM);
     486  iz=mpz_fdiv_ui(dest,npPrimeM);
    487487  mpz_clear(dest);
    488488  omFreeBin((ADDRESS)res, rnumber_bin);
Note: See TracChangeset for help on using the changeset viewer.