MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / byteswap

Function byteswap

src/rommgr.cpp:1977–1985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1975
1976
1977static void byteswap(uae_u8* buf, int size)
1978{
1979 int i;
1980 for (i = 0; i < size; i += 2) {
1981 uae_u8 t = buf[i];
1982 buf[i] = buf[i + 1];
1983 buf[i + 1] = t;
1984 }
1985}
1986static void halfswap(uae_u8* buf, int size)
1987{
1988 for (int i = 0; i < size / 2; i++) {

Callers 2

read_romFunction · 0.85
rom_fopen2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected