MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / byteReverse

Function byteReverse

util/md5.c:55–64  ·  view source on GitHub ↗

* Note: this code is harmless on little-endian machines. */

Source from the content-addressed store, hash-verified

53 * Note: this code is harmless on little-endian machines.
54 */
55static 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/*

Callers 2

MD5UpdateFunction · 0.85
MD5FinalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected