Changeset 78eaa8 in git for factory/cf_gcd.cc
- Timestamp:
- Jul 24, 2019, 1:39:31 PM (5 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 20e7303a3d50b30117c53a232ad724297637ac0e
- Parents:
- fa1cd304b94fb2782b47874564b731a57670c34ccbb89a79113ccf8c4cf31dd700cba8927fe3623a
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2019-07-24 13:39:31+02:00
- git-committer:
- GitHub <noreply@github.com>2019-07-24 13:39:31+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd.cc
rcbb89a7 r78eaa8 26 26 #include "cfSubResGcd.h" 27 27 #include "cfModGcd.h" 28 #include "FLINTconvert.h" 28 29 #include "facAlgFuncUtil.h" 29 30 … … 100 101 if ( getCharacteristic() != 0 ) 101 102 { 103 #if defined(HAVE_FLINT) && ( __FLINT_RELEASE >= 20503) 104 if ( isOn( SW_USE_FL_GCD_P) 105 && (CFFactory::gettype() != GaloisFieldDomain) 106 && (getCharacteristic()>500) 107 &&(!hasAlgVar(fc)) && (!hasAlgVar(gc))) 108 { 109 return gcdFlintMP_Zp(fc,gc); 110 } 111 #endif 102 112 #ifdef HAVE_NTL 103 113 if ((!fc_and_gc_Univariate) && (isOn( SW_USE_EZGCD_P ))) … … 119 129 fc = subResGCD_p( fc, gc ); 120 130 } 121 else if (!fc_and_gc_Univariate) 131 else if (!fc_and_gc_Univariate) /* && char==0*/ 122 132 { 133 #if defined(HAVE_FLINT) && ( __FLINT_RELEASE >= 20503) 134 if (( isOn( SW_USE_FL_GCD_0) ) 135 &&(!hasAlgVar(fc)) && (!hasAlgVar(gc))) 136 { 137 return gcdFlintMP_QQ(fc,gc); 138 } 139 else 140 #endif 123 141 if ( isOn( SW_USE_EZGCD ) ) 124 142 fc= ezgcd (fc, gc); 125 #ifdef HAVE_NTL143 #ifdef HAVE_NTL 126 144 else if (isOn(SW_USE_CHINREM_GCD)) 127 145 fc = modGCDZ( fc, gc); 128 #endif146 #endif 129 147 else 130 148 {
Note: See TracChangeset
for help on using the changeset viewer.