Changeset 001a38f in git for polys/monomials/monomials.h


Ignore:
Timestamp:
Aug 3, 2010, 5:19:15 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
686d0c90b76fecd3c9f122c4ec9f911b250d96b8
Parents:
d918007d7c7ab103c19eb14688e5e63b507927b1
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-08-03 17:19:15+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:24+01:00
Message:
polys-impl.h ->monomials.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • polys/monomials/monomials.h

    rd918007 r001a38f  
    237237#endif
    238238
    239 #endif
     239/***************************************************************
     240 *
     241 * Purpose:    low-level and macro definition of polys
     242 *
     243 * If you touch anything here, you better know what you are doing.
     244 * What is here should not be used directly from other routines -- the
     245 * encapsulations in polys.h should be used, instead.
     246 *
     247 ***************************************************************/
     248
     249#define POLYSIZE (sizeof(poly) + sizeof(number))
     250#define POLYSIZEW (POLYSIZE / sizeof(long))
     251#if SIZEOF_LONG == 8
     252#define POLY_NEGWEIGHT_OFFSET (((long)0x80000000) << 32)
     253#else
     254#define POLY_NEGWEIGHT_OFFSET ((long)0x80000000)
     255#endif
     256
     257
     258/***************************************************************
     259 *
     260 * Macros for low-level allocation
     261 *
     262 ***************************************************************/
     263#ifdef PDEBUG
     264#define p_AllocBin(p, bin, r)                   \
     265do                                              \
     266{                                               \
     267  omTypeAllocBin(poly, p, bin);                 \
     268  p_SetRingOfLm(p, r);                        \
     269}                                               \
     270while (0)
     271#define p_FreeBinAddr(p, r) p_LmFree(p, r)
     272#else
     273#define p_AllocBin(p, bin, r)   omTypeAllocBin(poly, p, bin)
     274#define p_FreeBinAddr(p, r)     omFreeBinAddr(p)
     275#endif
     276
     277/***************************************************************
     278 *
     279 * Misc macros
     280 *
     281 ***************************************************************/
     282#define rRing_has_Comp(r)   (r->pCompIndex >= 0)
     283
     284#endif
Note: See TracChangeset for help on using the changeset viewer.