Changeset 54c713 in git


Ignore:
Timestamp:
Apr 21, 1998, 12:43:22 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
331d542622a081414dc51131c5489e4e7d6d5ba3
Parents:
142b7b541ca90ee57fa4fdbb939c0550b008661c
Message:
	* extra.cc (jjSYSTEM): code added for factory testing.  Wrapped
	  by #defines `FACTORY_GCD_TEST' and `FACTORY_GCD_TIMING'.


git-svn-id: file:///usr/local/Singular/svn/trunk@1405 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r142b7b r54c713  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.37 1998-04-16 16:10:13 obachman Exp $ */
     4/* $Id: extra.cc,v 1.38 1998-04-21 10:43:22 schmidt Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    6565#include "silink.h"
    6666#include "mpsr.h"
     67
     68// see clapsing.cc for a description of the `FACTORY_*' options
     69
     70#ifdef FACTORY_GCD_STAT
     71#define FACTORY_GCD_TEST
     72#endif
     73
     74#ifdef FACTORY_GCD_TIMING
     75#define FACTORY_GCD_TEST
     76#define TIMING
     77#include "timing.h"
     78TIMING_DEFINE_PRINTPROTO( contentTimer );
     79TIMING_DEFINE_PRINTPROTO( algContentTimer );
     80TIMING_DEFINE_PRINTPROTO( algLcmTimer );
     81#endif
    6782
    6883//void emStart();
     
    700715    }
    701716    else
     717#ifdef FACTORY_GCD_TEST
     718/*=======================gcd Testerei ================================*/
     719    if ( ! strcmp( (char*)(h->Data()), "setgcd" ) ) {
     720        if ( (h->next != NULL) && (h->next->Typ() == INT_CMD) ) {
     721            CFPrimitiveGcdUtil::setAlgorithm( (int)h->next->Data() );
     722            return FALSE;
     723        } else
     724            WerrorS("int expected");
     725    }
     726    else
     727#endif
     728
     729#ifdef FACTORY_GCD_TIMING
     730    if ( ! strcmp( (char*)(h->Data()), "gcdtime" ) ) {
     731        TIMING_PRINT( contentTimer, "time used for content: " );
     732        TIMING_PRINT( algContentTimer, "time used for algContent: " );
     733        TIMING_PRINT( algLcmTimer, "time used for algLcm: " );
     734        TIMING_RESET( contentTimer );
     735        TIMING_RESET( algContentTimer );
     736        TIMING_RESET( algLcmTimer );
     737        return FALSE;
     738    }
     739    else
     740#endif
     741     
    702742/*============================================================*/
    703743      WerrorS( feNotImplemented );
Note: See TracChangeset for help on using the changeset viewer.