mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 02:38:29 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
26
sdk/lib/cryptlib/util.c
Normal file
26
sdk/lib/cryptlib/util.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
|
||||
|
||||
#if !defined(_MSC_VER) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
||||
#include <stdlib.h>
|
||||
#include <intrin.h>
|
||||
|
||||
void
|
||||
byteReverse(unsigned char *buf, unsigned longs)
|
||||
{
|
||||
unsigned int t;
|
||||
|
||||
do
|
||||
{
|
||||
#if 0
|
||||
t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 |
|
||||
((unsigned)buf[1] << 8 | buf[0]);
|
||||
#else
|
||||
t = _byteswap_ulong(*(unsigned int *)buf);
|
||||
#endif
|
||||
*(unsigned int *)buf = t;
|
||||
buf += 4;
|
||||
} while (--longs);
|
||||
}
|
||||
|
||||
#endif // !defined(_MSC_VER) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue