source: git/libpolys/polys/nc/ncSACache.cc @ 69658e

fieker-DuValspielwiese
Last change on this file since 69658e was 2e4ec14, checked in by Yue Ren <ren@…>, 11 years ago
fix: -Wunused-parameter warnings
  • Property mode set to 100644
File size: 2.0 KB
Line 
1/****************************************
2*  Computer Algebra System SINGULAR     *
3****************************************/
4/***************************************************************
5 *  File:    ncSACache.cc
6 *  Purpose: implementation of special Cache+Hash for Multiplier
7 *  Author:  motsak
8 *  Created:
9 *******************************************************************/
10
11#define MYTEST 0
12
13#if MYTEST
14#define OM_CHECK 4
15#define OM_TRACK 5
16// these settings must be before "mod2.h" in order to work!!!
17#endif
18
19
20#include "config.h"
21#include <misc/auxiliary.h>
22
23#ifndef NDEBUG
24#define OUTPUT MYTEST
25#else
26#define OUTPUT 0
27#endif
28
29#if OUTPUT
30namespace 
31{
32  static const char* m_Typenames[2] = {"lookup", "store"};
33}
34#endif
35
36#include <coeffs/numbers.h>
37#include "coeffrings.h"
38
39#include "nc/ncSACache.h" // for CCacheHash etc classes
40
41#include "monomials/ring.h"
42#include "monomials/p_polys.h"
43
44
45#if OUTPUT
46void CGlobalCacheHash::History(const EHistoryType t, const CGlobalCacheHash::CExponent a, const CGlobalCacheHash::CExponent b, const poly p)
47#else
48void CGlobalCacheHash::History(const EHistoryType, const CGlobalCacheHash::CExponent, const CGlobalCacheHash::CExponent, const poly)
49#endif
50{
51#if OUTPUT
52  Print("History: GlobalPair, Action: %s", m_Typenames[(int)(t)]);
53  PrintLn();
54  PrintS("Left : "); p_Write(a, GetBasering());
55  PrintS("Right: "); p_Write(b, GetBasering());
56  if( t == MULT_STORE )
57  {
58    PrintS("Result: "); p_Write(p, GetBasering());
59  }
60#endif
61}
62
63
64#if OUTPUT
65void  CSpecialPairCacheHash::History(const EHistoryType t, const CSpecialPairCacheHash::CExponent a, const CSpecialPairCacheHash::CExponent b, const poly p)
66#else
67void  CSpecialPairCacheHash::History(const EHistoryType, const CSpecialPairCacheHash::CExponent, const CSpecialPairCacheHash::CExponent, const poly)
68#endif
69{
70#if OUTPUT
71  Print("History: SpecialPair, Action: %s", m_Typenames[(int)(t)]);
72  PrintLn();
73  Print("Left : %d, Right: %d", a, b);
74  PrintLn();
75  if( t == MULT_STORE )
76  {
77    PrintS("Result: "); p_Write(p, GetBasering());
78  }
79#endif
80}
Note: See TracBrowser for help on using the repository browser.