Changeset 24d587 in git for Singular/kInline.cc
- Timestamp:
- Dec 20, 2000, 12:15:50 PM (23 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- c22d845dacb42bdd0a798a7eb2606d8e9f6f6095
- Parents:
- bad9f3c06133001d0c55551cbf4faf2ca805670e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/kInline.cc
rbad9f3 r24d587 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 8/00 9 * Version: $Id: kInline.cc,v 1.2 0 2000-12-19 18:31:40obachman Exp $9 * Version: $Id: kInline.cc,v 1.21 2000-12-20 11:15:42 obachman Exp $ 10 10 *******************************************************************/ 11 11 #ifndef KINLINE_CC … … 20 20 21 21 #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 24 23 // #define HAVE_LM_BIN 25 24 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_BIN34 lmBin = omGetStickyBinOfBin(currRing->PolyBin);35 #endif36 #ifdef HAVE_TAIL_BIN37 tailBin = omGetStickyBinOfBin(currRing->PolyBin);38 #endif39 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 }56 25 57 26 KINLINE TObject* skStrategy::S_2_T(int i) … … 388 357 KINLINE long sTObject::pLDeg() 389 358 { 390 return ::pLDeg(GetLmTailRing(), &length, tailRing);359 return tailRing->pLDeg(GetLmTailRing(), &length, tailRing); 391 360 } 392 361 KINLINE long sTObject::SetDegStuffReturnLDeg() … … 698 667 int i = kBucketCanonicalize(bucket); 699 668 pNext(tp) = bucket->buckets[i]; 700 long ldeg = ::pLDeg(tp, &length, tailRing);669 long ldeg = tailRing->pLDeg(tp, &length, tailRing); 701 670 pNext(tp) = NULL; 702 671 return ldeg; 703 672 } 704 673 else 705 return ::pLDeg(tp, &length, tailRing);674 return tailRing->pLDeg(tp, &length, tailRing); 706 675 } 707 676 KINLINE long sLObject::pLDeg(BOOLEAN deg_last) … … 713 682 #ifdef HAVE_ASSUME 714 683 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)); 717 686 return fdeg; 718 687 #else 719 688 length = pLength; 720 return ::pFDeg(last, tailRing);689 return tailRing->pFDeg(last, tailRing); 721 690 #endif 722 691 }
Note: See TracChangeset
for help on using the changeset viewer.