Changeset a7bb5f0 in git
- Timestamp:
- Jan 17, 2022, 5:26:30 PM (17 months ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 936bb3e324ac78276f6695011e53cac7bdf9321f
- Parents:
- c4a26cb4e8c6f977201ace111bde272a4c4d1664
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
rc4a26c ra7bb5f0 1740 1740 { 1741 1741 int l=(origR->block1[k]-origR->block0[k]+1)*sizeof(int); 1742 if (origR->order[k]==ringorder_a64) l*=2; 1742 1743 wv[k+1]=(int*)omalloc(l); 1743 1744 memcpy(wv[k+1],origR->wvhdl[k],l); -
libpolys/polys/monomials/ring.cc
rc4a26c ra7bb5f0 987 987 { 988 988 int l=(r2->block1[0]-r2->block0[0]+1)*sizeof(int); 989 if (r2->order[0]==ringorder_a64) l*=2; 989 990 tmpR.wvhdl[1]=(int*)omalloc(l); 990 991 memcpy(tmpR.wvhdl[1],r2->wvhdl[0],l); … … 1073 1074 { 1074 1075 int l=(r1->block1[i]-r1->block0[i]+1)*sizeof(int); 1076 if (r1->order[i]==ringorder_a64) l*=2; 1075 1077 tmpR.wvhdl[i]=(int*)omalloc(l); 1076 1078 memcpy(tmpR.wvhdl[i],r1->wvhdl[i],l); … … 1101 1103 { 1102 1104 int l=(r2->block1[i]-r2->block0[i]+1)*sizeof(int); 1105 if (r2->order[i]==ringorder_a64) l*=2; 1103 1106 tmpR.wvhdl[j]=(int*)omalloc(l); 1104 1107 memcpy(tmpR.wvhdl[j],r2->wvhdl[i],l); … … 1136 1139 { 1137 1140 int l=(r1->block1[i]-r1->block0[i]+1)*sizeof(int); 1141 if (r1->order[i]==ringorder_a64) l*=2; 1138 1142 tmpR.wvhdl[i]=(int*)omalloc(l); 1139 1143 memcpy(tmpR.wvhdl[i],r1->wvhdl[i],l); … … 1484 1488 { 1485 1489 int l=(r->block1[j]-r->block0[j]+1)*sizeof(int); 1490 if (r->order[j]==ringorder_a64) l*=2; 1486 1491 res->wvhdl[j]=(int*)omalloc(l); 1487 1492 memcpy(res->wvhdl[j],r->wvhdl[j],l); … … 1622 1627 { 1623 1628 int l=(r->block1[j]-r->block0[j]+1)*sizeof(int); 1629 if (r->order[j]==ringorder_a64) l*=2; 1624 1630 res->wvhdl[j+1]=(int*)omalloc(l); 1625 1631 memcpy(res->wvhdl[j+1],r->wvhdl[j],l); … … 2287 2293 2288 2294 static void rO_WDegree64(int &place, int &bitplace, int start, int end, 2289 long *o, sro_ord &ord_struct, int *weights)2295 long *o, sro_ord &ord_struct, int64 *weights) 2290 2296 { 2291 2297 // weighted degree (aligned) of variables v_start..v_end, ordsgn 1, … … 3498 3504 case ringorder_a64: 3499 3505 rO_WDegree64(j,j_bits,r->block0[i],r->block1[i],tmp_ordsgn, 3500 tmp_typ[typ_i], r->wvhdl[i]);3506 tmp_typ[typ_i], (int64 *)(r->wvhdl[i])); 3501 3507 typ_i++; 3502 3508 break; … … 4502 4508 { 4503 4509 int l=(r->block1[j-1]-r->block0[j-1]+1)*sizeof(int); 4510 if (r->order[j-1]==ringorder_a64) l*=2; 4504 4511 wvhdl[j]=(int*)omalloc(l); 4505 4512 memcpy(wvhdl[j],r->wvhdl[j-1],l); … … 4688 4695 { 4689 4696 int l=(r->block1[j]-r->block0[j]+1)*sizeof(int); 4697 if (r->order[j]==ringorder_a64) l*=2; 4690 4698 new_r->wvhdl[j]=(int*)omalloc(l); 4691 4699 memcpy(new_r->wvhdl[j],r->wvhdl[j],l); … … 4920 4928 { 4921 4929 int l=(r->block1[i]-r->block0[i]+1)*sizeof(int); 4930 if (r->order[i]==ringorder_a64) l*=2; 4922 4931 wvhdl[j]=(int*)omalloc(l); 4923 4932 memcpy(wvhdl[j],r->wvhdl[i],l);
Note: See TracChangeset
for help on using the changeset viewer.