| 338 | } |
| 339 | |
| 340 | inline void ENDIAN_SWAP_64(const U8* from, U8* to) { |
| 341 | to[0] = from[7]; |
| 342 | to[1] = from[6]; |
| 343 | to[2] = from[5]; |
| 344 | to[3] = from[4]; |
| 345 | to[4] = from[3]; |
| 346 | to[5] = from[2]; |
| 347 | to[6] = from[1]; |
| 348 | to[7] = from[0]; |
| 349 | } |
| 350 | |
| 351 | inline int swap_endian_int(int input) { |
| 352 | int output; |