Changeset 3a1db5 in git for Singular/kInline.cc
- Timestamp:
- Nov 3, 2000, 3:50:24 PM (24 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
- Children:
- e48563d5ed52648088a920c503d1137f101859b6
- Parents:
- b6b85df0821ee32eafa525d9de58391e73dc09d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/kInline.cc
rb6b85df r3a1db5 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 8/00 9 * Version: $Id: kInline.cc,v 1.1 1 2000-10-30 13:40:17obachman Exp $9 * Version: $Id: kInline.cc,v 1.12 2000-11-03 14:50:16 obachman Exp $ 10 10 *******************************************************************/ 11 11 #ifndef KINLINE_CC … … 65 65 } 66 66 67 KINLINE TObject** initR() 68 { 69 return (TObject**) omAlloc0(setmax*sizeof(TObject*)); 70 } 71 72 KINLINE unsigned long* initsevT() 73 { 74 return (unsigned long*) omAlloc0(setmax*sizeof(unsigned long)); 75 } 76 67 77 // initialization 68 78 KINLINE void sTObject::Set(ring r) … … 209 219 } 210 220 211 KINLINE void sTObject::SetShortExpVector()212 {213 if (t_p != NULL)214 {215 sev = p_GetShortExpVector(t_p, tailRing);216 }217 else218 {219 sev = p_GetShortExpVector(p, currRing);220 }221 }222 221 223 222 // Iterations … … 454 453 } 455 454 455 KINLINE 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 467 KINLINE 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 456 475 /*************************************************************** 457 476 *
Note: See TracChangeset
for help on using the changeset viewer.