Changeset 3a1db5 in git for Singular/kInline.cc


Ignore:
Timestamp:
Nov 3, 2000, 3:50:24 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
e48563d5ed52648088a920c503d1137f101859b6
Parents:
b6b85df0821ee32eafa525d9de58391e73dc09d4
Message:
* as we go along


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

Legend:

Unmodified
Added
Removed
  • Singular/kInline.cc

    rb6b85df r3a1db5  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: kInline.cc,v 1.11 2000-10-30 13:40:17 obachman Exp $
     9 *  Version: $Id: kInline.cc,v 1.12 2000-11-03 14:50:16 obachman Exp $
    1010 *******************************************************************/
    1111#ifndef KINLINE_CC
     
    6565}
    6666
     67KINLINE TObject** initR()
     68{
     69  return (TObject**) omAlloc0(setmax*sizeof(TObject*));
     70}
     71
     72KINLINE unsigned long* initsevT()
     73{
     74  return (unsigned long*) omAlloc0(setmax*sizeof(unsigned long));
     75}
     76
    6777// initialization
    6878KINLINE void sTObject::Set(ring r)
     
    209219}
    210220
    211 KINLINE void sTObject::SetShortExpVector()
    212 {
    213   if (t_p != NULL)
    214   {
    215     sev = p_GetShortExpVector(t_p, tailRing);
    216   }
    217   else
    218   {
    219     sev = p_GetShortExpVector(p, currRing);
    220   }
    221 }
    222221   
    223222// Iterations
     
    454453}
    455454
     455KINLINE void sLObject::SetShortExpVector()
     456{
     457  if (t_p != NULL)
     458  {
     459    sev = p_GetShortExpVector(t_p, tailRing);
     460  }
     461  else
     462  {
     463    sev = p_GetShortExpVector(p, currRing);
     464  }
     465}
     466
     467KINLINE sLObject& sLObject::operator=(const sTObject& t)
     468{
     469  memset(this, 0, sizeof(*this));
     470  memcpy(this, &t, sizeof(sTObject));
     471  return *this;
     472}
     473
     474
    456475/***************************************************************
    457476 *
Note: See TracChangeset for help on using the changeset viewer.