Changeset a527a41 in git for libpolys/coeffs/ffields.cc
- Timestamp:
- Jul 9, 2018, 2:39:53 PM (5 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- 43fa86cc32c42433e618d6c2978915bf8a580e66
- Parents:
- ac754db5ea554de8a6115ff7e914fb77dc57c434
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/ffields.cc
rac754d ra527a41 499 499 * read an integer (with reduction mod p) 500 500 */ 501 static const char* nfEati(const char *s, int *i, const coeffs r) 502 { 503 if (*s >= '0' && *s <= '9') 504 { 505 *i = 0; 506 do 507 { 508 *i *= 10; 509 *i += *s++ - '0'; 510 if (*i > (MAX_INT_VAL / 10)) *i = *i % r->m_nfCharP; 511 } 512 while (*s >= '0' && *s <= '9'); 513 if (*i >= r->m_nfCharP) *i = *i % r->m_nfCharP; 514 } 515 else *i = 1; 516 return s; 501 static inline const char* nfEati(const char *s, int *i, const coeffs r) 502 { 503 return nEati((char *)s,i,r->m_nfCharP); 517 504 } 518 505
Note: See TracChangeset
for help on using the changeset viewer.