Changeset 24d587 in git for Singular/kInline.cc


Ignore:
Timestamp:
Dec 20, 2000, 12:15:50 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c22d845dacb42bdd0a798a7eb2606d8e9f6f6095
Parents:
bad9f3c06133001d0c55551cbf4faf2ca805670e
Message:
* clean-up[ of LDeg/FDeg stuff
* tailRing for local homg


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

Legend:

Unmodified
Added
Removed
  • Singular/kInline.cc

    rbad9f3 r24d587  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: kInline.cc,v 1.20 2000-12-19 18:31:40 obachman Exp $
     9 *  Version: $Id: kInline.cc,v 1.21 2000-12-20 11:15:42 obachman Exp $
    1010 *******************************************************************/
    1111#ifndef KINLINE_CC
     
    2020
    2121#define HAVE_TAIL_BIN
    22 // Hmm ... this I don't understand:
    23 // with HAVE_LM_BIN, cyclic_7 is appr. 10% slower (on Intel)
     22// This doesn't really work, fixme, if necessary
    2423// #define HAVE_LM_BIN
    2524
    26 KINLINE skStrategy::skStrategy()
    27 {
    28   memset(this, 0, sizeof(skStrategy));
    29   tailRing = currRing;
    30   P.tailRing = currRing;
    31   tl = -1;
    32   sl = -1;
    33 #ifdef HAVE_LM_BIN
    34   lmBin = omGetStickyBinOfBin(currRing->PolyBin);
    35 #endif
    36 #ifdef HAVE_TAIL_BIN
    37   tailBin = omGetStickyBinOfBin(currRing->PolyBin);
    38 #endif
    39   pOrigFDeg = pFDeg;
    40   pOrigLDeg = pLDeg;
    41 }
    42 
    43 KINLINE skStrategy::~skStrategy()
    44 {
    45   if (lmBin != NULL)
    46     omMergeStickyBinIntoBin(lmBin, currRing->PolyBin);
    47   if (tailBin != NULL)
    48     omMergeStickyBinIntoBin(tailBin,
    49                             (tailRing != NULL ? tailRing->PolyBin:
    50                              currRing->PolyBin));
    51   if (currRing != tailRing)
    52     rKillModifiedRing(tailRing);
    53   pLDeg = pOrigLDeg;
    54   pFDeg = pOrigFDeg;
    55 }
    5625
    5726KINLINE TObject* skStrategy::S_2_T(int i)
     
    388357KINLINE long sTObject::pLDeg()
    389358{
    390   return ::pLDeg(GetLmTailRing(), &length, tailRing);
     359  return tailRing->pLDeg(GetLmTailRing(), &length, tailRing);
    391360}
    392361KINLINE long sTObject::SetDegStuffReturnLDeg()
     
    698667    int i = kBucketCanonicalize(bucket);
    699668    pNext(tp) = bucket->buckets[i];
    700     long ldeg = ::pLDeg(tp, &length, tailRing);
     669    long ldeg = tailRing->pLDeg(tp, &length, tailRing);
    701670    pNext(tp) = NULL;
    702671    return ldeg;
    703672  }
    704673  else
    705     return ::pLDeg(tp, &length, tailRing);
     674    return tailRing->pLDeg(tp, &length, tailRing);
    706675}
    707676KINLINE long sLObject::pLDeg(BOOLEAN deg_last)
     
    713682#ifdef HAVE_ASSUME
    714683  long fdeg;
    715   fdeg = ::pLDeg(GetLmTailRing(), &length, tailRing);
    716   assume (pLength == length && fdeg == ::pFDeg(last, tailRing));
     684  fdeg = tailRing->pLDeg(GetLmTailRing(), &length, tailRing);
     685  assume (pLength == length && fdeg == tailRing->pFDeg(last, tailRing));
    717686  return fdeg;
    718687#else
    719688  length = pLength;
    720   return ::pFDeg(last, tailRing);
     689  return tailRing->pFDeg(last, tailRing);
    721690#endif
    722691}
Note: See TracChangeset for help on using the changeset viewer.