Swap bytes from 37 80 40 12 to 40 12 37 80
| 142 | // Swap bytes from 37 80 40 12 |
| 143 | // to 40 12 37 80 |
| 144 | void ROMFile::ByteSwap_2301( void * p_bytes, u32 length ) |
| 145 | { |
| 146 | u32* p = (u32*)p_bytes; |
| 147 | u32* maxp = (u32*)((u8*)p_bytes + length); |
| 148 | for(; p < maxp; p++) |
| 149 | { |
| 150 | std::swap(((u16*)p)[0], ((u16*)p)[1]); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | |
| 155 | // Swap bytes from 80 37 12 40 |
nothing calls this directly
no outgoing calls
no test coverage detected