- for (i = 0; i < 0x100; i++)
- b[i] = buf[i];
- for (i = 0; i < 0x100; i++)
- b[0x100 + i] = buf[(l0 >> 1) + i];
- for (i = 0; i < 0x200; i++)
- b[0x200 + i] = buf[l0 - 0x200 + i];
+ memcpy(b, buf, 0x100);
+ memcpy(b + 0x100, buf + ((l0 >> 1) - ((l0 & 0x6) >> 1)), 0x100);
+ memcpy(b + 0x200, buf + (l0 - 0x200), 0x200);