Changeset 4047a6 in git


Ignore:
Timestamp:
Sep 18, 2000, 12:26:13 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a5127397c476917935268a35df746271b31ac4d5
Parents:
9f537845c135f3acb5065187370df2bb778ce0fe
Message:
* p_Procs_debug added


git-svn-id: file:///usr/local/Singular/svn/trunk@4612 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/Makefile.in

    r9f5378 r4047a6  
    277277
    278278p_Procs.inc: p_Procs.cc p_Procs.h mod2.h
     279        $(CXX) -g -Wall -DNDEBUG -DGENERATE_P_PROCS p_Procs.cc -o p_Procs
     280        ./p_Procs > p_Procs.inc
     281p_Procs_debug.inc: p_Procs.cc p_Procs.h mod2.h
    279282        $(CXX) -g -Wall -DGENERATE_P_PROCS p_Procs.cc -o p_Procs
    280         ./p_Procs > p_Procs.inc
    281 
    282 p_Procs.o: p_Procs.inc
     283        ./p_Procs > p_Procs_debug.inc
     284
     285p_Procs.o: p_Procs.inc p_Procs_debug.inc
    283286
    284287src: scanner.cc grammar.h grammar.cc libparse.cc
  • Singular/p_Procs.cc

    r9f5378 r4047a6  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: p_Procs.cc,v 1.8 2000-09-18 09:19:27 obachman Exp $
     9 *  Version: $Id: p_Procs.cc,v 1.9 2000-09-18 10:26:13 obachman Exp $
    1010 *******************************************************************/
    1111#include <string.h>
     
    1919 *******************************************************************/
    2020// define to enable/disable ptest in p_Procs
    21 #undef TEST_P_PROCS
    22 // #define TEST_P_PROCS
    2321
    2422/***************************************************************
     
    4644//   3 -- plus Field*_Length*_OrdGeneral procs
    4745//   4 -- all Field*_Length*_Ord* procs
     46#ifdef NDEBUG
     47const int HAVE_FAST_P_PROCS = 4;
     48#else
    4849const int HAVE_FAST_P_PROCS = 0;
     50#endif
    4951
    5052// Set HAVE_FAST_FIELD to:
     
    6062//   3 -- special cases for length <= 4
    6163//   4 -- special cases for length <= 8
    62 const int HAVE_FAST_LENGTH = 2;
     64const int HAVE_FAST_LENGTH = 4;
    6365
    6466// Set HAVE_FAST_ORD to:
     
    506508#include "p_MemAdd.h"
    507509#include "p_MemCopy.h"
    508 
     510#ifdef NDEBUG
    509511#include "p_Procs.inc"
     512#else
     513#include "p_Procs_debug.inc"
     514#endif
    510515
    511516// the rest is related to getting the procs
Note: See TracChangeset for help on using the changeset viewer.