ReactOS 0.4.15-dev-7942-gd23573b
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}
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
GLdouble GLdouble t
Definition: gl.h:2047
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
_Check_return_ unsigned long __cdecl _byteswap_ulong(_In_ unsigned long)