Changeset 924cca in git


Ignore:
Timestamp:
Feb 13, 2006, 6:12:42 PM (18 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
42ddd0dbdece5354f0a671a1747d9a01790bf8b8
Parents:
c7afb70a6725827461cf4b44dca573c599e0a11d
Message:
*bricken: some macros for without USE_COEF_BUCKETS, seems not to break with, but not enough to repair without


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

Legend:

Unmodified
Added
Removed
  • kernel/kbuckets.cc

    rc7afb70 r924cca  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kbuckets.cc,v 1.23 2006-02-13 14:54:59 Singular Exp $ */
     4/* $Id: kbuckets.cc,v 1.24 2006-02-13 17:12:28 bricken Exp $ */
    55
    66#include "mod2.h"
     
    248248    }
    249249#endif
    250 #if 0
     250#ifndef USE_COEF_BUCKETS
    251251    MULTIPLY_BUCKET(bucket,i);
    252252    pNext(lm) = bucket->buckets[i];
     
    257257    bucket->buckets[0] = NULL;
    258258    bucket->buckets_length[0] = 0;
    259 #endif
     259    kbTest(bucket);
     260#else
    260261    if (i > bucket->buckets_used)  bucket->buckets_used = i;
    261262    assume(i!=0);
     
    296297    bucket->coef[0]=NULL;
    297298    kbTest(bucket);
    298   }
     299    #endif
     300  }
     301
    299302}
    300303
     
    801804  {
    802805    //if (FALSE){
     806    #ifdef USE_COEF_BUCKETS
    803807    if ((bucket->coef[i]!=NULL) &&(i>=coef_start))
    804808    {
     
    843847    }
    844848    else
     849    #endif
    845850    {
    846851      MULTIPLY_BUCKET(bucket,i);
     
    853858    }
    854859  }
     860  #ifdef USE_COEF_BUCKETS
    855861  else
    856862  {
     
    867873    p_SetCoeff(m,n_Copy(n,r),r);
    868874  }
     875  #endif
    869876
    870877  while ((bucket->buckets[i] != NULL) && (p1!=NULL))
    871878  {
    872879    assume(i!=0);
     880    #ifdef USE_COEF_BUCKETS
    873881    if ((bucket->coef[i]!=NULL) &&(i>=coef_start))
    874882    {
     
    905913    }
    906914    else
     915    #endif
    907916    {
    908917      //don't do that, pull out gcd
     918      #ifdef USE_COEF_BUCKETS
    909919      if(!(n_IsOne(n,r)))
    910920      {
     
    913923        n=n_Init(1,r);
    914924      }
     925      #endif
    915926      MULTIPLY_BUCKET(bucket,i);
    916927      p1 = p_Add_q(p1, bucket->buckets[i],
     
    923934
    924935  bucket->buckets[i] = p1;
    925 
     936#ifdef USE_COEF_BUCKETS
    926937  assume(bucket->coef[i]==NULL);
     938 
    927939  if (!(n_IsOne(n,r)))
    928940  {
     
    934946    n_Delete(&n,r);
    935947  }
     948  #endif
    936949  if ((p1==NULL) && (bucket->coef[i]!=NULL))
    937950    p_Delete(&bucket->coef[i],r);
  • kernel/p_kBucketSetLm__T.cc

    rc7afb70 r924cca  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 12/00
    9  *  Version: $Id: p_kBucketSetLm__T.cc,v 1.3 2005-12-19 13:33:36 bricken Exp $
     9 *  Version: $Id: p_kBucketSetLm__T.cc,v 1.4 2006-02-13 17:12:42 bricken Exp $
    1010 *******************************************************************/
    1111#undef USE_COEF_BUCKETS
     
    2525#define MULTIPLY_BUCKET(B,I)
    2626#endif
    27 #if 0
     27#ifndef USE_COEF_BUCKETS
    2828LINKAGE void p_kBucketSetLm(kBucket_pt bucket)
    2929{
Note: See TracChangeset for help on using the changeset viewer.