Annotation of truecrypt/common/endian.c, revision 1.1.1.5

1.1.1.3   root        1: /* The source code contained in this file has been derived from the source code
                      2:    of Encryption for the Masses 2.02a by Paul Le Roux. Modifications and
1.1.1.5 ! root        3:    additions to that source code contained in this file are Copyright (c) 2004-2005
1.1.1.4   root        4:    TrueCrypt Foundation and Copyright (c) 2004 TrueCrypt Team. Unmodified
1.1.1.3   root        5:    parts are Copyright (c) 1998-99 Paul Le Roux. This is a TrueCrypt Foundation
                      6:    release. Please see the file license.txt for full license details. */
1.1       root        7: 
                      8: #include "TCdefs.h"
                      9: #include "endian.h"
                     10: 
                     11: void
                     12: LongReverse (unsigned long *buffer, unsigned byteCount)
                     13: {
                     14:        unsigned long value;
                     15: 
                     16:        byteCount /= sizeof (unsigned long);
                     17:        while (byteCount--)
                     18:        {
                     19:                value = *buffer;
                     20:                value = ((value & 0xFF00FF00L) >> 8) | \
                     21:                    ((value & 0x00FF00FFL) << 8);
                     22:                *buffer++ = (value << 16) | (value >> 16);
                     23:        }
                     24: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.