Changeset b8027c in git for kernel/pInline2.h


Ignore:
Timestamp:
Dec 9, 2006, 12:55:35 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ab1d1cbf2127c32e349512cc14dbd970bcbf91e9
Parents:
bc49e512eda58a96a83ddfd550e0906f182ae01f
Message:
*hannes; ore extensions


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

Legend:

Unmodified
Added
Removed
  • kernel/pInline2.h

    rbc49e51 rb8027c  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: pInline2.h,v 1.6 2006-11-23 15:04:54 Singular Exp $
     9 *  Version: $Id: pInline2.h,v 1.7 2006-12-09 11:55:35 Singular Exp $
    1010 *******************************************************************/
    1111#ifndef PINLINE2_H
     
    147147#endif
    148148}
     149// partial compare exponent
     150// r->VarOffset encodes the position in p->exp (lower 24 bits)
     151// and number of bits to shift to the right in the upper 8 bits
     152PINLINE2 int p_Comp_k_n(poly a, poly b, int k, ring r)
     153{
     154  p_LmCheckPolyRing2(a, r);
     155  p_LmCheckPolyRing2(b, r);
     156  pAssume2(k > 0 && k <= r->N);
     157  int i=k;
     158  for(;i<=r->N;i++)
     159  {
     160    if(a->exp[(r->VarOffset[i] & 0xffffff)]
     161    != b->exp[(r->VarOffset[i] & 0xffffff)])
     162      return FALSE;
     163  }
     164  return TRUE;
     165}
    149166PINLINE2 int p_SetExp(poly p, int v, int e, ring r)
    150167{
Note: See TracChangeset for help on using the changeset viewer.