Changeset f1e1d6 in git


Ignore:
Timestamp:
Dec 6, 2022, 3:26:46 PM (2 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
ea6f5fd00f8207633ad0147638b12e12582387d1
Parents:
cbf866d4f8c3861325311c042cb2033c053453b2
Message:
opt: ZZ/n
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/rmodulon.cc

    rcbf866 rf1e1d6  
    189189static int nrnSize(number a, const coeffs)
    190190{
    191   mpz_ptr p=(mpz_ptr)a;
    192   int s=p->_mp_alloc;
    193   if (s==1) s=(mpz_cmp_ui(p,0)!=0);
    194   return s;
     191  return mpz_sgn1((mpz_ptr)a);
    195192}
    196193#endif
     
    247244static BOOLEAN nrnIsZero(number a, const coeffs)
    248245{
    249   return 0 == mpz_cmpabs_ui((mpz_ptr)a, 0);
     246  return 0 == mpz_sgn1((mpz_ptr)a);
    250247}
    251248
Note: See TracChangeset for help on using the changeset viewer.