Changeset 6e56de in git for Singular/polys-impl.h


Ignore:
Timestamp:
Aug 24, 2000, 1:21:47 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
51e993f9b344a8396d1aacab475782ed749fc581
Parents:
660ad3261b8221e209ee2df3ffc488c824260573
Message:
*hannes: removed exp.e


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

Legend:

Unmodified
Added
Removed
  • Singular/polys-impl.h

    r660ad32 r6e56de  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys-impl.h,v 1.46 2000-08-14 12:56:44 obachman Exp $ */
     6/* $Id: polys-impl.h,v 1.47 2000-08-24 11:21:44 Singular Exp $ */
    77
    88/***************************************************************
     
    3434{
    3535#ifdef HAVE_SHIFTED_EXPONENTS
    36    long           e[VARS +1];
    3736   unsigned long  l[VARS +1];
    3837#else
     
    102101#define _pSetCoeff0(p,n)    (p)->coef=n
    103102
     103//#ifdef HAVE_SHIFTED_EXPONENTS
     104//#define _pGetOrder(p)       ((p)->exp.l[currRing->pOrdIndex]-0x40000000)
     105//#else
    104106#define _pGetOrder(p)       ((p)->exp.l[currRing->pOrdIndex])
     107//#endif
    105108
    106109#if defined(PDEBUG) && PDEBUG > 1
     
    254257#endif // defined(PDEBUG) && PDEBUG > 1
    255258
     259#ifndef HAVE_SHIFTED_EXPONENTS
     260
    256261#define _pGetComp(p)        ((p)->exp.e[_pCompIndex])
    257262#define _pIncrComp(p)       _pGetComp(p)++
    258263#define _pRingGetComp(r,p)        ((p)->exp.e[_pRingCompIndex(r)])
    259264
    260 #ifndef HAVE_SHIFTED_EXPONENTS
    261265inline Exponent_t _pGetExpSum(poly p1, poly p2, int i)
    262266{
     
    269273  return p1->exp.e[index] - p2->exp.e[index];
    270274}
    271 #else
     275
     276#else //---------------------------------------------
     277
     278#define _pGetComp(p)        ((p)->exp.l[_pCompIndex])
     279#define _pIncrComp(p)       _pGetComp(p)++
     280#define _pRingGetComp(r,p)        ((p)->exp.l[_pRingCompIndex(r)])
     281
    272282inline Exponent_t _pGetExpSum(poly p1, poly p2, int i)
    273283{
Note: See TracChangeset for help on using the changeset viewer.