Changeset dc4782 in git for libpolys/coeffs/ffields.cc


Ignore:
Timestamp:
Nov 25, 2013, 4:49:42 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
98e588265496a69b639a1e37bf39d39134a6df5f
Parents:
7bb7da5db82ebe13b1923654fb861e84c6c3ec65
Message:
chg: factory/libfac is not optional, removing HAVE_FACTORY/HAVE_LIBFAC
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/ffields.cc

    r7bb7da5 rdc4782  
    579579}
    580580
    581 #ifdef HAVE_FACTORY
    582581int gf_tab_numdigits62 ( int q );
    583582int convertback62 ( char * p, int n );
    584 #else
    585 static int gf_tab_numdigits62 ( int q )
    586 {
    587     if ( q < 62 )          return 1;
    588     else  if ( q < 62*62 ) return 2;
    589     /*else*/               return 3;
    590 }
    591 
    592 static int convback62 ( char c )
    593 {
    594     if ( c >= '0' && c <= '9' )
    595         return int(c) - int('0');
    596     else  if ( c >= 'A' && c <= 'Z' )
    597         return int(c) - int('A') + 10;
    598     else
    599         return int(c) - int('a') + 36;
    600 }
    601 
    602 static int convertback62 ( char * p, int n )
    603 {
    604     int r = 0;
    605     for ( int j = 0; j < n; j++ )
    606         r = r * 62 + convback62( p[j] );
    607     return r;
    608 }
    609 #endif
    610583
    611584int nfMinPoly[16];
Note: See TracChangeset for help on using the changeset viewer.