Changeset a41f4b6 in git
- Timestamp:
- Nov 9, 2010, 11:12:51 AM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ba3e3ef698fa0b7c5867199959cc83330073d3cb')
- Children:
- 3a28ffd8f74584ab2ed394ff3d3c22bb6670fa61
- Parents:
- fbbb08becdc8fd9fbb911c8b7b74de5c2f52d7ad
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_char.cc
rfbbb08 ra41f4b6 12 12 #include "cf_primes.h" 13 13 #include "cf_binom.h" 14 #include "cf_util.h" 14 15 #ifdef SINGULAR 15 #include "singext.h"16 //#include "singext.h" 16 17 #endif 17 18 … … 40 41 theCharacteristic = c; 41 42 ff_big = c > cf_getSmallPrime( cf_getNumSmallPrimes()-1 ); 42 #ifdef SINGULAR 43 if (!errorreported && (c > 536870909)) Werror("characteristic %d is too large(max is 2^29)",c); 44 #endif 43 if (c > 536870909) factoryError("characteristic is too large(max is 2^29)"); 45 44 ff_setprime( c ); 46 45 resetFPT(); -
factory/cf_util.cc
rfbbb08 ra41f4b6 47 47 return n; 48 48 } 49 50 #include<stdio.h> 51 52 void (*factoryError_callback)(const char *s) = 0; 53 54 void factoryError(const char *s) 55 { 56 if (factoryError_callback!=0) factoryError_callback(s); 57 else fprintf(stderr,s); 58 } 59 -
factory/cf_util.h
rfbbb08 ra41f4b6 16 16 int ilog2 (int a); 17 17 18 extern void (*factoryError_callback)(const char *s); 19 20 void factoryError(const char *s); 18 21 19 22 #endif /* ! INCL_CF_UTIL_H */
Note: See TracChangeset
for help on using the changeset viewer.