blob: 5aa635215a6e24e459c1470e603a7af0fe65fee0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*=============================================================================
This file is the part of wordaccess.h for use under these
conditions:
* GCC (>=3.4), GLIBC
* Big-Endian machines
*===========================================================================*/
typedef unsigned long int wordint;
typedef unsigned char wordintBytes[sizeof(wordint)];
static __inline__ wordint
bytesToWordint(wordintBytes bytes) {
return *((wordint *)bytes);
}
static __inline__ void
wordintToBytes(wordintBytes * const bytesP,
wordint const wordInt) {
*(wordint *)bytesP = wordInt;
}
|