Changeset ea6f5f in git


Ignore:
Timestamp:
Dec 6, 2022, 3:54:09 PM (2 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
96ce329119711a2b80858c8365abd29f8460bbfa
Parents:
f1e1d6dfb766f4cf9b6eb3e1962bc7fdd53ddd8b
Message:
opt: bigint, ZZ/n
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/rintegers2.cc

    rf1e1d6 rea6f5f  
    144144int nrzSize(number a, const coeffs)
    145145{
    146   mpz_ptr p=(mpz_ptr)a;
    147   int s=p->_mp_alloc;
    148   if (s==1) s=(mpz_cmp_ui(p,0)!=0);
    149   return s;
     146  return mpz_size1((mpz_ptr)a);
    150147
    151148}
     
    192189static BOOLEAN nrzIsZero (number  a, const coeffs)
    193190{
    194   return 0 == mpz_cmpabs_ui((mpz_ptr) a, 0);
     191  return 0 == mpz_sgn1((mpz_ptr) a, 0);
    195192}
    196193
  • libpolys/coeffs/rmodulon.cc

    rf1e1d6 rea6f5f  
    189189static int nrnSize(number a, const coeffs)
    190190{
    191   return mpz_sgn1((mpz_ptr)a);
     191  return mpz_size1((mpz_ptr)a);
    192192}
    193193#endif
Note: See TracChangeset for help on using the changeset viewer.