Changeset 517530 in git
- Timestamp:
- May 7, 2012, 5:34:51 PM (11 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- dccd6db99cc44c93669e843ddb6e06d2682769b8
- Parents:
- e7676af1109530ff2efd9495bfdb0fa2cedc576a
- Location:
- factory
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/algext.cc
re7676a r517530 13 13 #endif 14 14 #endif 15 16 #include "cf_assert.h" 15 17 16 18 #include "templates/ftmpl_functions.h" … … 589 591 } 590 592 591 #ifdef HAVE_NTL592 593 static CanonicalForm 593 594 myicontent ( const CanonicalForm & f, const CanonicalForm & c ) 594 595 { 596 #ifdef HAVE_NTL 595 597 if (f.isOne() || c.isOne()) 596 598 return 1; … … 620 622 return g; 621 623 } 622 } 624 #else 625 return 1; 623 626 #endif 627 } 624 628 625 629 CanonicalForm -
factory/cf_gcd.cc
re7676a r517530 1278 1278 //printf("try p=%d\n",p); 1279 1279 setCharacteristic( p ); 1280 #ifdef HAVE_NTL 1280 1281 Dp = GCD_small_p (mapinto (f), mapinto (g), cofp, cogp); 1282 #else 1283 Dp= gcd_poly (mapinto (f), mapinto (g)); 1284 cofp= mapinto (f)/Dp; 1285 cogp= mapinto (g)/Dp; 1286 #endif 1281 1287 Dp /=Dp.lc(); 1282 1288 cofp /= lc (cofp); -
factory/cf_gcd_smallp.cc
re7676a r517530 35 35 #include "cf_iter.h" 36 36 #include "cfNewtonPolygon.h" 37 #include "cf_algorithm.h" 37 38 38 39 // iinline helper functions: … … 45 46 46 47 #include "cf_gcd_smallp.h" 47 48 #ifdef HAVE_NTL49 48 50 49 TIMING_DEFINE_PRINT(gcd_recursion) … … 72 71 return false; 73 72 } 73 74 #ifdef HAVE_NTL 74 75 75 76 static const double log2exp= 1.442695041; -
factory/fac_ezgcd.cc
re7676a r517530 30 30 #include "facHensel.h" 31 31 32 #ifdef HAVE_NTL 32 33 static 33 34 int compress4EZGCD (const CanonicalForm& F, const CanonicalForm& G, CFMap & M, … … 673 674 return N (d*cand); 674 675 } 676 #endif 675 677 676 678 CanonicalForm 677 679 ezgcd ( const CanonicalForm & FF, const CanonicalForm & GG ) 678 680 { 681 #ifdef HAVE_NTL 679 682 REvaluation b; 680 683 return ezgcd( FF, GG, b, false ); 681 } 682 684 #else 685 Off (SW_USE_EZGCD); 686 return gcd (FF, GG); 687 On (SW_USE_EZGCD); 688 #endif 689 } 690
Note: See TracChangeset
for help on using the changeset viewer.