Changeset 2bd9ca in git
- Timestamp:
- Jun 16, 2010, 1:20:19 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- fb104b7d78bc189a491c27b263c1337ce820192f
- Parents:
- e26570af1d6e72bc74fe694d1a8c3e3e8ea624e3
- git-author:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2010-06-16 13:20:19+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:10+01:00
- Location:
- coeffs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/Makefile.in
re26570 r2bd9ca 35 35 CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions 36 36 CPPFLAGS = -I${srcdir} -I${includedir} -I${srcdir}/../misc/ -I${srcdir}/../resource/ -I${srcdir}/../reporter/ -L${srcdir}/../reporter/ -L${libdir} -lgmp 37 DEFS = -Dix86_Linux -DHAVE_CONFIG_H -DLDEBUG -DDEBUG -DOM_DEBUG -DHAVE_ASSUME -DHAVE_RINGS 37 DEFS = -Dix86_Linux -DHAVE_CONFIG_H -DLDEBUG -DDEBUG -DOM_DEBUG -DHAVE_ASSUME 38 39 #-DHAVE_RINGS 38 40 # -DHAVE_RINGS # Doesn't work :( 39 41 # -DNDEBUG -DOM_NDEBUG … … 78 80 mostlyclean: 79 81 -rm -f *.o *.og core *.op 80 81 82 82 83 83 cleantest: 84 84 -rm -Rf test test.dSYM/ 85 86 85 87 86 clean: mostlyclean cleantest 88 87 -rm -f *.bak *.d *.dd depend *.a *.so* 89 90 91 88 92 89 tags: -
coeffs/coeffs.h
re26570 r2bd9ca 9 9 */ 10 10 11 #include <aux.h> 11 #include <auxiliary.h> 12 #include <si_gmp.h> 12 13 13 14 enum n_coeffType … … 31 32 struct snumber; 32 33 typedef struct snumber * number; 34 35 /* standard types */ 36 #ifdef HAVE_RINGS 37 typedef unsigned long NATNUMBER; 38 typedef mpz_ptr int_number; 39 #endif 33 40 34 41 // … … 55 62 #define n_Invers(a, r) (r)->cfInvers(a,r) 56 63 #define n_ExactDiv(a, b, r) (r)->cfExactDiv(a,b,r) 57 #define n_Test(a,r) (r)->cfDBTest(a,r,__FILE__,__LINE__) 58 64 // #define n_Test(a,r) (r)->cfDBTest(a,r,__FILE__,__LINE__) 59 65 #define n_InpMult(a, b, r) (r)->cfInpMult(a,b,r) 60 66 #define n_Power(a, b, res, r) (r)->cfPower(a,b,res,r) … … 246 252 #define n_New(n, r) nNew(n) 247 253 248 #endif 249 254 static inline BOOLEAN n_DBTest(number a, const char *filename, const int linenumber, const coeffs r) 255 { 256 #ifdef LDEBUG 257 //return (r)->cfDBTest(a, filename, linenumber, r); 258 return (r)->cfDBTest(a,r,filename,linenumber); 259 #else 260 return TRUE; 261 #endif 262 } 263 /// BOOLEAN n_Test(number a, const coeffs r) 264 #define n_Test(a,r) n_DBTest(a, __FILE__, __LINE__, r) 265 266 #endif 267 -
coeffs/test.cc
re26570 r2bd9ca 21 21 number a = r->cfInit(666, r); 22 22 number b = r->cfAdd( a, a, r); 23 23 24 n_Test(a,r); 25 n_Test(b,r); 26 24 27 StringSetS("a: ");r->cfWrite( a, r );PrintS(StringAppend("\n")); 25 28 StringSetS("b: "); r->cfWrite( b, r );PrintS(StringAppend("\n"));
Note: See TracChangeset
for help on using the changeset viewer.