mirror of
https://github.com/libretro/xmil-libretro.git
synced 2024-11-23 08:09:42 +00:00
20 lines
223 B
C
20 lines
223 B
C
|
#include "compiler.h"
|
||
|
#include "textcnv.h"
|
||
|
|
||
|
|
||
|
void textcnv_swapendian16(void *buf, UINT leng) {
|
||
|
|
||
|
UINT8 *p;
|
||
|
UINT8 tmp;
|
||
|
|
||
|
p = (UINT8 *)buf;
|
||
|
while(leng) {
|
||
|
tmp = p[0];
|
||
|
p[0] = p[1];
|
||
|
p[1] = tmp;
|
||
|
p += 2;
|
||
|
leng--;
|
||
|
}
|
||
|
}
|
||
|
|