Changeset 72e8c1 in git


Ignore:
Timestamp:
Jan 17, 2017, 2:55:46 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '5bec8f88c9ee2573d328cf7c3aff2bcb301d2395')
Children:
0091f520ce1d05c31263015fbc74956dd9b73454
Parents:
f234fb2281d0dac21b1fd712e8f48d04dd80a688
Message:
changes for short ints for n_Z
Location:
libpolys/coeffs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/longrat.cc

    rf234fb2 r72e8c1  
    966966}
    967967
    968 number  nlGetUnit (number, const coeffs)
    969 {
    970   return INT_TO_SR(1);
     968number  nlGetUnit (number n, const coeffs cf)
     969{
     970  if (nlGreaterZero(n,cf)) return INT_TO_SR(1);
     971  else                     return INT_TO_SR(-1);
    971972}
    972973
     
    24772478  return FALSE;
    24782479  #else
    2479   return (a==INT_TO_SR(0));
     2480  return (a==NULL)|| (a==INT_TO_SR(0));
    24802481  #endif
    24812482}
     
    33273328  r->rep=n_rep_gap_rat;
    33283329
    3329   //const int ch = (int)(long)(p);
    3330 
    33313330  r->nCoeffIsEqual=nlCoeffIsEqual;
    33323331  //r->cfKillChar = ndKillChar; /* dummy */
  • libpolys/coeffs/modulop.cc

    rf234fb2 r72e8c1  
    560560  r->nNULL = (number)0;
    561561  r->type = n_Zp;
    562   r->ch = c;
    563562  r->has_simple_Alloc=TRUE;
    564563  r->has_simple_Inverse=TRUE;
  • libpolys/coeffs/rintegers.cc

    rf234fb2 r72e8c1  
    159159{
    160160  if (a == NULL) return 0;
    161   return ABS(((mpz_ptr)a)->_mp_size);
     161  return (((mpz_ptr)a)->_mp_alloc);
    162162}
    163163
Note: See TracChangeset for help on using the changeset viewer.