Changeset 740d7f in git for factory/canonicalform.h


Ignore:
Timestamp:
Oct 18, 2005, 3:16:15 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
09a7ea0ee33d3cbccab6d902952c181613c5e0a8
Parents:
01e2dfd44b8e96e6877fa3a7c12a1a47582b931d
Message:
*hannes: some inline


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

Legend:

Unmodified
Added
Removed
  • factory/canonicalform.h

    r01e2df r740d7f  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: canonicalform.h,v 1.28 2003-10-15 17:19:39 Singular Exp $ */
     2/* $Id: canonicalform.h,v 1.29 2005-10-18 13:16:14 Singular Exp $ */
    33
    44#ifndef INCL_CANONICALFORM_H
     
    3737/*BEGINPUBLIC*/
    3838
     39class InternalCF;
     40
     41inline int is_imm ( const InternalCF * const ptr )
     42{
     43    // returns 0 if ptr is not immediate       
     44    return ( (long)ptr & 3 );
     45}
     46
     47
    3948int initCanonicalForm( void );
    4049
    4150static int cf_is_initialized_now = initCanonicalForm();
    42 
    43 class InternalCF;
    4451
    4552//{{{ class CanonicalForm
     
    6774    CF_NO_INLINE bool isOne() const;
    6875    CF_NO_INLINE bool isZero() const;
    69     bool isImm() const;
     76    inline bool isImm() const { return is_imm( value ); };
    7077
    7178    bool inZ() const;
     
    313320inline int
    314321headdegree ( const CanonicalForm & f ) { return totaldegree( head( f ) ); }
     322
     323
    315324//}}}
    316325
Note: See TracChangeset for help on using the changeset viewer.