get rid of custom memcpy funcs

not used for anything important, just a maintenance burden
This commit is contained in:
notaz 2017-10-14 21:10:25 +03:00
parent ba11a48115
commit fdcfd32374
9 changed files with 7 additions and 198 deletions

View file

@ -391,7 +391,7 @@ int YM2612UpdateOne_940(int *buffer, int length, int stereo, int is_buf_empty)
ym_active_chs = shared_ctl->ym_active_chs;
// mix in ym buffer. is_buf_empty means nobody mixed there anything yet and it may contain trash
if (is_buf_empty && ym_active_chs) memcpy32(buffer, ym_buf, length<<stereo);
if (is_buf_empty && ym_active_chs) memcpy(buffer, ym_buf, length << (stereo + 2));
else memset32(buffer, 0, length<<stereo);
if (shared_ctl->writebuffsel == 1) {

View file

@ -280,7 +280,7 @@ static int EmuScanEnd16_ld(unsigned int num)
ld_left = ld_lines;
EmuScanBegin16_ld(num);
memcpy32(Pico.est.DrawLineDest, oldline, 320 * gp2x_current_bpp / 8 / 4);
memcpy(Pico.est.DrawLineDest, oldline, 320 * gp2x_current_bpp / 8);
if (emu_scan_end)
emu_scan_end(ld_counter);
@ -315,7 +315,7 @@ static int make_local_pal_md(int fast_mode)
bgr444_to_rgb32(localPal+0x80, Pico.est.HighPal+0x40);
}
else
memcpy32(localPal+0x80, localPal, 0x40); // for spr prio mess
memcpy(localPal + 0x80, localPal, 0x40 * 4); // for spr prio mess
return pallen;
}