Cross Dump Example Dump交叉实例
Example for Parts = 4, Step = 2:
Marker = trunc(Marker/Step)*Step*Parts + Dump*Step + Marker%Step
Marker = trunc(Marker/2)*2*4 + Dump*2 + Marker%2
Source dumps: | Joined dump: | |||
Dump_0 Marker 0 Dump_0 Marker 1 Dump_0 Marker 2 Dump_0 Marker 3Dump_1 Marker 0 Dump_1 Marker 1 Dump_1 Marker 2 Dump_1 Marker 3Dump_2 Marker 0 Dump_2 Marker 1 Dump_2 Marker 2 Dump_2 Marker 3 Dump_3 Marker 0 |
→ → → → → |
Marker 0*4 + 0*2 + 0 = 0 Marker 0*4 + 0*2 + 1 = 1 Marker 2*4 + 0*2 + 0 = 8 Marker 2*4 + 0*2 + 1 = 9Marker 0*4 + 1*2 + 0 = 2 Marker 0*4 + 1*2 + 1 = 3 Marker 2*4 + 1*2 + 0 = 10 Marker 2*4 + 1*2 + 1 = 11Marker 0*4 + 2*2 + 0 = 4 Marker 0*4 + 2*2 + 1 = 5 Marker 2*4 + 2*2 + 0 = 12 Marker 2*4 + 2*2 + 1 = 13 Marker 0*4 + 3*2 + 0 = 6 |
trunc(0/2)*2 = 0*2 = 0
trunc(1/2)*2 = 0*2 = 0
trunc(2/2)*2 = 1*2 = 2
trunc(3/2)*2 = 1*2 = 2
0%2 = 0
1%2 = 1
2%2 = 0
3%2 = 1