ReactOS  0.4.13-dev-645-g69454b4
util.c File Reference
#include <stdlib.h>
#include <intrin.h>
Include dependency graph for util.c:

Go to the source code of this file.

Functions

void byteReverse (unsigned char *buf, unsigned longs)
 

Function Documentation

◆ byteReverse()

void byteReverse ( unsigned char buf,
unsigned  longs 
)

Definition at line 8 of file util.c.

9 {
10  unsigned int t;
11 
12  do
13  {
14 #if 0
15  t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 |
16  ((unsigned)buf[1] << 8 | buf[0]);
17 #else
18  t = _byteswap_ulong(*(unsigned int *)buf);
19 #endif
20  *(unsigned int *)buf = t;
21  buf += 4;
22  } while (--longs);
23 }
static int
Definition: util.c:37
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLdouble GLdouble t
Definition: gl.h:2047
_Check_return_ unsigned long __cdecl _byteswap_ulong(_In_ unsigned long)

Referenced by MD4Final(), MD4Update(), MD5Final(), and MD5Update().