Changeset ac434f in git


Ignore:
Timestamp:
Mar 16, 2011, 10:43:39 AM (12 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
b8f199b27a94458ece9173dd4c4eb3449352fbdf
Parents:
2f6ca63579dbf5195f7dbd177e9e67afbfb66dfa
Message:
Revert "removed old switch HAVE_ZERODIVISORS"

This reverts commit dbb0d9b064d608e0b3bb83e30eaf3e2de1ad44f3.

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

Legend:

Unmodified
Added
Removed
  • kernel/p_Minus_mm_Mult_qq__T.cc

    r2f6ca63 rac434f  
    6767  Equal:   // qm equals p
    6868  tb = n_Mult(pGetCoeff(q), tm, r);
    69 #ifdef HAVE_RINGS
     69#ifdef HAVE_ZERODIVISORS
    7070  if (!nIsZero(tb)) {
    7171#endif
     
    8686    p = p_LmFreeAndNext(p, r);
    8787  }
    88 #ifdef HAVE_RINGS
     88#ifdef HAVE_ZERODIVISORS
    8989  }
    9090  else
     
    101101
    102102  Greater:
    103 #ifdef HAVE_RINGS
     103#ifdef HAVE_ZERODIVISORS
    104104  tb = n_Mult(pGetCoeff(q), tneg, r);
    105105  if (!nIsZero(tb))
     
    108108    pSetCoeff0(qm, n_Mult(pGetCoeff(q), tneg, r));
    109109    a = pNext(a) = qm;       // append qm to result and advance q
    110 #ifdef HAVE_RINGS
     110#ifdef HAVE_ZERODIVISORS
    111111  }
    112112  else
  • kernel/p_Mult_mm__T.cc

    r2f6ca63 rac434f  
    3030  pAssume(!n_IsZero(ln,ri));
    3131
    32 #ifdef HAVE_RINGS
     32#ifdef HAVE_ZERODIVISORS
    3333  poly before = p;
    3434#endif
     
    3737    pn = pGetCoeff(p);
    3838    number tmp = n_Mult(ln, pn, ri);
    39 #ifdef HAVE_RINGS
     39#ifdef HAVE_ZERODIVISORS
    4040    if (n_IsZero(tmp, ri))
    4141    {
     
    6060      p_MemAdd(p->exp, m_e, length);
    6161      p_MemAddAdjust(p, ri);
    62 #ifdef HAVE_RINGS
     62#ifdef HAVE_ZERODIVISORS
    6363      before = p;
    6464#endif
  • kernel/p_Mult_nn__T.cc

    r2f6ca63 rac434f  
    2323
    2424  poly q = p;
    25 #ifdef HAVE_RINGS
     25#ifdef HAVE_ZERODIVISORS
    2626  poly old = NULL;
    2727#endif
    2828  while (p != NULL)
    2929  {
    30 #ifndef HAVE_RINGS
     30#ifndef HAVE_ZERODIVISORS
    3131    number nc = pGetCoeff(p);
    3232    pSetCoeff0(p, n_Mult(n, nc, r));
  • kernel/p_Procs_Generate.cc

    r2f6ca63 rac434f  
    120120  }
    121121#endif
     122#ifdef HAVE_RINGS
     123  if (strcmp(s_field, "RingGeneral") == 0)
     124    printf("#define HAVE_ZERODIVISORS\n");
     125#endif
    122126  i = 0;
    123127  while (macros_field[i] != NULL)
     
    192196  printf("#include <kernel/%s__T.cc>\n", s_what);
    193197  printf("#undef %s\n", s_what);
     198#ifdef HAVE_RINGS
     199  if (strcmp(s_field, "RingGeneral") == 0)
     200    printf("#undef HAVE_ZERODIVISORS\n");
     201#endif
    194202#ifndef p_Procs_Static
    195203  printf("#endif // p_Procs_[Kernel|Field*]\n");
  • kernel/pp_Mult_mm__T.cc

    r2f6ca63 rac434f  
    2626  }
    2727  spolyrec rp;
    28 #ifdef HAVE_RINGS
     28#ifdef HAVE_ZERODIVISORS
    2929  rp.next = NULL;
    3030#endif
     
    4141  {
    4242    tmp = n_Mult(ln, pGetCoeff(p), ri);
    43 #ifdef HAVE_RINGS
     43#ifdef HAVE_ZERODIVISORS
    4444    if (! n_IsZero(tmp, ri))
    4545    {
     
    5050      p_MemSum(q->exp, p->exp, m_e, length);
    5151      p_MemAddAdjust(q, ri);
    52 #ifdef HAVE_RINGS
     52#ifdef HAVE_ZERODIVISORS
    5353    }
    5454    else n_Delete(&tmp, ri);
  • kernel/pp_Mult_nn__T.cc

    r2f6ca63 rac434f  
    2222  if (p == NULL) return NULL;
    2323  spolyrec rp;
    24 #ifdef HAVE_RINGS
     24#ifdef HAVE_ZERODIVISORS
    2525  rp.next = NULL;
    2626#endif
     
    2828  omBin bin = r->PolyBin;
    2929  DECLARE_LENGTH(const unsigned long length = r->ExpL_Size);
     30
    3031  do
    3132  {
    32 #ifndef HAVE_RINGS
     33#ifndef HAVE_ZERODIVISORS
    3334    p_AllocBin(pNext(q), bin, r);
    3435    pIter(q);
Note: See TracChangeset for help on using the changeset viewer.