mirror of
https://github.com/libretro/xmil-libretro.git
synced 2024-11-23 08:09:42 +00:00
8fdc122b6b
refs #97 svn merge -r 116:117 https://amethyst.yui.ne.jp/svn-dev/x1/xmil/branches/yui/WORK_01 svn merge -r 144:145 https://amethyst.yui.ne.jp/svn-dev/x1/xmil/branches/yui/WORK_01 svn merge -r 153:154 https://amethyst.yui.ne.jp/svn-dev/x1/xmil/branches/yui/WORK_01 svn merge -r 158:159 https://amethyst.yui.ne.jp/svn-dev/x1/xmil/branches/yui/WORK_01 svn merge -r 217:218 https://amethyst.yui.ne.jp/svn-dev/x1/xmil/branches/yui/WORK_01
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--;
|
|
}
|
|
}
|
|
|