blob: 95b68ac755e1fd501507781b87509319d253373d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*=============================================================================
This file is the part of wordaccess.h for use on a big-endian machine
that does not require word accesses to be word-aligned.
*===========================================================================*/
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;
}
|