Changeset 740d7f in git for factory/canonicalform.h
- Timestamp:
- Oct 18, 2005, 3:16:15 PM (19 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 09a7ea0ee33d3cbccab6d902952c181613c5e0a8
- Parents:
- 01e2dfd44b8e96e6877fa3a7c12a1a47582b931d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/canonicalform.h
r01e2df r740d7f 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: canonicalform.h,v 1.2 8 2003-10-15 17:19:39Singular Exp $ */2 /* $Id: canonicalform.h,v 1.29 2005-10-18 13:16:14 Singular Exp $ */ 3 3 4 4 #ifndef INCL_CANONICALFORM_H … … 37 37 /*BEGINPUBLIC*/ 38 38 39 class InternalCF; 40 41 inline int is_imm ( const InternalCF * const ptr ) 42 { 43 // returns 0 if ptr is not immediate 44 return ( (long)ptr & 3 ); 45 } 46 47 39 48 int initCanonicalForm( void ); 40 49 41 50 static int cf_is_initialized_now = initCanonicalForm(); 42 43 class InternalCF;44 51 45 52 //{{{ class CanonicalForm … … 67 74 CF_NO_INLINE bool isOne() const; 68 75 CF_NO_INLINE bool isZero() const; 69 bool isImm() const;76 inline bool isImm() const { return is_imm( value ); }; 70 77 71 78 bool inZ() const; … … 313 320 inline int 314 321 headdegree ( const CanonicalForm & f ) { return totaldegree( head( f ) ); } 322 323 315 324 //}}} 316 325
Note: See TracChangeset
for help on using the changeset viewer.