c-hglib
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
utils.c
Go to the documentation of this file.
1
#include <stdint.h>
2
#include <stdlib.h>
3
#include <stdio.h>
4
5
#include "
utils.h
"
6
7
/*
8
* Byte swap unsigned int
9
* */
10
uint32_t
swap_uint32
(uint32_t val)
11
{
12
val = ((val << 8) & 0xFF00FF00) | ((val >> 8) & 0xFF00FF);
13
return
(val << 16) | (val >> 16);
14
}
hglib
utils.c
Generated on Tue Jul 30 2013 22:04:40 for c-hglib by
1.8.1.2