* Note: this code is harmless on little-endian machines. */
| 53 | * Note: this code is harmless on little-endian machines. |
| 54 | */ |
| 55 | static void byteReverse(unsigned char *buf, unsigned int longs) |
| 56 | { |
| 57 | uint32 t; |
| 58 | do { |
| 59 | t = (uint32) ((unsigned int)buf[3] << 8 | buf[2]) << 16 | |
| 60 | ((unsigned int)buf[1] << 8 | buf[0]); |
| 61 | *(uint32 *) buf = t; |
| 62 | buf += 4; |
| 63 | } while (--longs); |
| 64 | } |
| 65 | #endif |
| 66 | |
| 67 | /* |