Changeset f1e1d6 in git
- Timestamp:
- Dec 6, 2022, 3:26:46 PM (2 months ago)
- Branches:
- (u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
- Children:
- ea6f5fd00f8207633ad0147638b12e12582387d1
- Parents:
- cbf866d4f8c3861325311c042cb2033c053453b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/rmodulon.cc
rcbf866 rf1e1d6 189 189 static int nrnSize(number a, const coeffs) 190 190 { 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); 195 192 } 196 193 #endif … … 247 244 static BOOLEAN nrnIsZero(number a, const coeffs) 248 245 { 249 return 0 == mpz_ cmpabs_ui((mpz_ptr)a, 0);246 return 0 == mpz_sgn1((mpz_ptr)a); 250 247 } 251 248
Note: See TracChangeset
for help on using the changeset viewer.