Changeset 47faf56 in git for Singular/polys-impl.h


Ignore:
Timestamp:
Jan 12, 1998, 8:00:02 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
567aff6dba275744806617fcbb3253b828a9b5d1
Parents:
38cfbb50a8306b0a1da54ae6a6614ae8f4ecc643
Message:
* ring handling: from pChangeRing to rChangeCurrRing was prepared
* various fixes towards working COMP_FAST
* fixed gcd content problem of factory


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

Legend:

Unmodified
Added
Removed
  • Singular/polys-impl.h

    r38cfbb r47faf56  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys-impl.h,v 1.5 1998-01-05 16:39:25 Singular Exp $ */
     6/* $Id: polys-impl.h,v 1.6 1998-01-12 18:59:52 obachman Exp $ */
    77
    88/***************************************************************
     
    174174  ((r)->VarOffset > (SIZEOF_LONG / SIZEOF_EXPONENT) - 1 ?   \
    175175   (r)->VarOffset - (i) : (r)->VarOffset + (i))
     176#define _pExpIndex(i)                                   \
     177  (pVarOffset > (SIZEOF_LONG / SIZEOF_EXPONENT) - 1 ?   \
     178   pVarOffset - (i) : pVarOffset + (i))
    176179#endif
    177180   
     
    825828
    826829#ifdef COMP_FAST
    827 #define _pExpQuerSum(p)     __pExpQuerSum2(p, pVarLowIndex, pVarHighIndex)
    828 #define _pExpQuerSum1(p,to) __pExpQuerSum2(p, pVarLowIndex, pVarLowIndex+to-1)
    829 #define _pExpQuerSum2(p,from, to)     \
    830   __pQuerSum2(p, pVarLowIndex + from -1 ,pVarLowIndex + to -1)
    831 #else
     830#define _pExpQuerSum(p)  __pExpQuerSum2(p, pVarLowIndex, pVarHighIndex)
     831
     832#define _pExpQuerSum1(p,to) \
     833 (_pHasReverseExp ? \
     834    __pExpQuerSum2(p, _pExpIndex(to), _pExpIndex(1)) : \
     835    __pExpQuerSum2(p, _pExpIndex(1), _pExpIndex(to)))
     836 
     837#define _pExpQuerSum2(p,from,to) \
     838 (_pHasReverseExp ? \
     839    __pExpQuerSum2(p, _pExpIndex(to), _pExpIndex(from)) : \
     840    __pExpQuerSum2(p, _pExpIndex(from), _pExpIndex(to)))
     841#else
     842
    832843#define _pExpQuerSum(p)             __pExpQuerSum2(p, 1, pVariables)
    833844#define _pExpQuerSum1(p, to)        __pExpQuerSum2(p, 1, to)
    834845#define _pExpQuerSum2(p, from, to)  __pExpQuerSum2(p, from, to)
     846
    835847#endif
    836848           
Note: See TracChangeset for help on using the changeset viewer.