Changeset 02a069e in git for Singular/extra.cc
- Timestamp:
- Aug 6, 2009, 12:18:33 PM (14 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 424cd646332e11e54c822873f6276ff3ddcb8751
- Parents:
- f60485dae160ea69a455571578bb2877fbc73226
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
rf60485d r02a069e 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.31 1 2009-07-28 15:16:04Singular Exp $ */4 /* $Id: extra.cc,v 1.312 2009-08-06 10:18:00 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 160 160 #endif 161 161 162 163 // see clapsing.cc for a description of the `FACTORY_*' options164 165 #ifdef FACTORY_GCD_STAT166 #include "gcd_stat.h"167 #endif168 169 #ifdef FACTORY_GCD_TIMING170 #define TIMING171 #include "timing.h"172 TIMING_DEFINE_PRINTPROTO( contentTimer );173 TIMING_DEFINE_PRINTPROTO( algContentTimer );174 TIMING_DEFINE_PRINTPROTO( algLcmTimer );175 #endif176 162 177 163 void piShowProcList(); … … 2287 2273 else 2288 2274 #endif 2289 /*=======================gcd Testerei ================================*/2290 #ifdef FACTORY_GCD_TEST2291 if ( ! strcmp( sys_cmd, "setgcd" ) )2292 {2293 if ( (h != NULL) && (h->Typ() == INT_CMD) )2294 {2295 CFPrimitiveGcdUtil::setAlgorithm( (int)h->Data() );2296 return FALSE;2297 } else2298 WerrorS("int expected");2299 }2300 else2301 #endif2302 2303 #ifdef FACTORY_GCD_TIMING2304 if ( ! strcmp( sys_cmd, "gcdtime" ) )2305 {2306 TIMING_PRINT( contentTimer, "time used for content: " );2307 TIMING_PRINT( algContentTimer, "time used for algContent: " );2308 TIMING_PRINT( algLcmTimer, "time used for algLcm: " );2309 TIMING_RESET( contentTimer );2310 TIMING_RESET( algContentTimer );2311 TIMING_RESET( algLcmTimer );2312 return FALSE;2313 }2314 else2315 #endif2316 2317 #ifdef FACTORY_GCD_STAT2318 if ( ! strcmp( sys_cmd, "gcdstat" ) )2319 {2320 printGcdTotal();2321 printContTotal();2322 resetGcdTotal();2323 resetContTotal();2324 return FALSE;2325 }2326 else2327 #endif2328 2275 /*==================== listall ===================================*/ 2329 2276 if(strcmp(sys_cmd,"listall")==0)
Note: See TracChangeset
for help on using the changeset viewer.