Changeset a527a41 in git for libpolys/coeffs/modulop.cc


Ignore:
Timestamp:
Jul 9, 2018, 2:39:53 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
Children:
43fa86cc32c42433e618d6c2978915bf8a580e66
Parents:
ac754db5ea554de8a6115ff7e914fb77dc57c434
Message:
move *Eati/*EatLong to numbers.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/modulop.cc

    rac754d ra527a41  
    264264#endif
    265265
    266 static const char* npEati(const char *s, int *i, const coeffs r)
    267 {
    268   if (((*s) >= '0') && ((*s) <= '9'))
    269   {
    270     unsigned long ii=0L;
    271     do
    272     {
    273       ii *= 10;
    274       ii += *s++ - '0';
    275       if (ii >= (MAX_INT_VAL / 10)) ii = ii % r->ch;
    276     }
    277     while (((*s) >= '0') && ((*s) <= '9'));
    278     if (ii >= (unsigned long)r->ch) ii = ii % r->ch;
    279     *i=(int)ii;
    280   }
    281   else (*i) = 1;
    282   return s;
     266static inline const char* npEati(const char *s, int *i, const coeffs r)
     267{
     268  return nEati((char *)s,i,r->ch);
    283269}
    284270
Note: See TracChangeset for help on using the changeset viewer.