|
|
1.1 root 1: /* Copyright (C) 2004 TrueCrypt Team, truecrypt.org
2: This product uses components written by Paul Le Roux <[email protected]> */
3:
4: #include "TCdefs.h"
5: #include "endian.h"
6:
7: void
8: LongReverse (unsigned long *buffer, unsigned byteCount)
9: {
10: unsigned long value;
11:
12: byteCount /= sizeof (unsigned long);
13: while (byteCount--)
14: {
15: value = *buffer;
16: value = ((value & 0xFF00FF00L) >> 8) | \
17: ((value & 0x00FF00FFL) << 8);
18: *buffer++ = (value << 16) | (value >> 16);
19: }
20: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.