Changeset 611871 in git
- Timestamp:
- Mar 28, 2011, 1:53:28 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- f97705b0f28d859734876fd55a7115c409a8b5c8
- Parents:
- a3a116bf31680a590c2cc3c1e27c44b1b4fc7dea
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/longrat.cc
ra3a116 r611871 313 313 number r=nlRInit(1); 314 314 mpz_set_d(r->z,f); 315 memcpy 4(&(r->n),&h1,sizeof(h1));315 memcpy(&(r->n),&h1,sizeof(h1)); 316 316 r->s=0; /* not normalized */ 317 317 if(f_sign==-1) r=nlNeg(r); … … 420 420 // number r=nlRInit(1); 421 421 // mpz_set_d(&(r->z),f); 422 // memcpy 4(&(r->n),&h1,sizeof(h1));422 // memcpy(&(r->n),&h1,sizeof(h1)); 423 423 // r->s=0; /* not normalized */ 424 424 // nlNormalize(r); … … 435 435 // mpz_setbit(&r->z,f_size*BYTES_PER_MP_LIMB*8-1); 436 436 // // now r->z has enough space 437 // memcpy 4(mpz_limb_d(&r->z),((*f)[0]._mp_d),f_size*BYTES_PER_MP_LIMB);437 // memcpy(mpz_limb_d(&r->z),((*f)[0]._mp_d),f_size*BYTES_PER_MP_LIMB); 438 438 // nlNormalize(r); 439 439 // } … … 445 445 // mpz_setbit(&r->z,f_size*BYTES_PER_MP_LIMB*8-1); 446 446 // // now r->z has enough space 447 // memcpy 4(mpz_limb_d(&r->z),((*f)[0]._mp_d),f_size*BYTES_PER_MP_LIMB);447 // memcpy(mpz_limb_d(&r->z),((*f)[0]._mp_d),f_size*BYTES_PER_MP_LIMB); 448 448 // } 449 449 // else /* f_shift < 0 */ … … 451 451 // mpz_setbit(&r->z,(f_size-f_shift)*BYTES_PER_MP_LIMB*8-1); 452 452 // // now r->z has enough space 453 // memcpy 4(mpz_limb_d(&r->z)-f_shift,((*f)[0]._mp_d),453 // memcpy(mpz_limb_d(&r->z)-f_shift,((*f)[0]._mp_d), 454 454 // f_size*BYTES_PER_MP_LIMB); 455 455 // } -
kernel/mod2.h.in
ra3a116 r611871 293 293 #define HALT() m2_end(2) 294 294 295 #define memcpy4 memcpy296 297 295 /* define OLD_RES for res/sres/mres(i,j,k) */ 298 296 #undef OLD_RES -
kernel/ring.cc
ra3a116 r611871 811 811 memset(&tmpR,0,sizeof(tmpR)); 812 812 /* check coeff. field =====================================================*/ 813 if (rInternalChar(r1)==rInternalChar(r2)) 813 if ((rFieldType(r1)==rFieldType(r2)) 814 && (rInternalChar(r1)==rInternalChar(r2))) 814 815 { 815 816 tmpR.ch=rInternalChar(r1); … … 831 832 } 832 833 } 833 else if ( (r1->ch==1)||(r1->ch<-1)) /* Q(a),Z/p(a) */834 else if (rField_is_Extension(r1)) /* Q(a),Z/p(a) */ 834 835 { 835 836 if (r1->minpoly!=NULL) … … 928 929 } 929 930 } 931 #ifdef HAVE_RINGS 932 else if (rField_is_Ring(r1)||rField_is_Ring(r2)) 933 { 934 Werror("rSumInternal for rings coeffs"); 935 return -1; 936 } 937 #endif 930 938 } 931 939 else /* r1->ch!=r2->ch */ … … 1530 1538 ring res=(ring)omAllocBin(sip_sring_bin); 1531 1539 memset(res,0,sizeof(ip_sring)); 1532 //memcpy 4(res,r,sizeof(ip_sring));1540 //memcpy(res,r,sizeof(ip_sring)); 1533 1541 //memset: res->idroot=NULL; /* local objects */ 1534 1542 //ideal minideal; … … 1650 1658 res->wvhdl[j]=NULL; 1651 1659 } 1652 memcpy 4(res->order,r->order,i * sizeof(int));1653 memcpy 4(res->block0,r->block0,i * sizeof(int));1654 memcpy 4(res->block1,r->block1,i * sizeof(int));1660 memcpy(res->order,r->order,i * sizeof(int)); 1661 memcpy(res->block0,r->block0,i * sizeof(int)); 1662 memcpy(res->block1,r->block1,i * sizeof(int)); 1655 1663 } 1656 1664 //memset: else … … 4593 4601 new_r->block0 = (int *) omAlloc0(i * sizeof(int)); 4594 4602 new_r->block1 = (int *) omAlloc0(i * sizeof(int)); 4595 memcpy 4(new_r->order,r->order,(i-1) * sizeof(int));4596 memcpy 4(new_r->block0,r->block0,(i-1) * sizeof(int));4597 memcpy 4(new_r->block1,r->block1,(i-1) * sizeof(int));4603 memcpy(new_r->order,r->order,(i-1) * sizeof(int)); 4604 memcpy(new_r->block0,r->block0,(i-1) * sizeof(int)); 4605 memcpy(new_r->block1,r->block1,(i-1) * sizeof(int)); 4598 4606 for (int j=0; j<=last_block; j++) 4599 4607 { -
kernel/walkSupport.cc
ra3a116 r611871 1015 1015 //i.e. if old order was O, then the new one will be (A(w),O) 1016 1016 /////////////////////////////////////////////////////////////////// 1017 //Uses: omAllocBin,memcpy 4,sizeof,nCopy,omStrDup,omMemDup,1017 //Uses: omAllocBin,memcpy,sizeof,nCopy,omStrDup,omMemDup, 1018 1018 //idrCopyR_NoSort 1019 1019 /////////////////////////////////////////////////////////////////// … … 1027 1027 ring res=(ring)omAllocBin(sip_sring_bin); 1028 1028 1029 memcpy 4(res,r,sizeof(ip_sring));1029 memcpy(res,r,sizeof(ip_sring)); 1030 1030 res->VarOffset = NULL; 1031 1031 res->ref=0; -
kernel/weight0.c
ra3a116 r611871 218 218 { 219 219 fy = fmax; 220 memcpy 4(xopt, x + 1, a);220 memcpy(xopt, x + 1, a); 221 221 } 222 222 t--; … … 327 327 { 328 328 x[s0]--; 329 memcpy 4(xopt, x + 1, n * sizeof(int));329 memcpy(xopt, x + 1, n * sizeof(int)); 330 330 if (s1==0) 331 331 break; … … 335 335 x[s1]--; 336 336 x[s2]--; 337 memcpy 4(xopt, x + 1, n * sizeof(int));337 memcpy(xopt, x + 1, n * sizeof(int)); 338 338 } 339 339 else
Note: See TracChangeset
for help on using the changeset viewer.