diff options
Diffstat (limited to 'lib/util/wordaccess_be_unaligned.h')
-rw-r--r-- | lib/util/wordaccess_be_unaligned.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/util/wordaccess_be_unaligned.h b/lib/util/wordaccess_be_unaligned.h deleted file mode 100644 index 95b68ac7..00000000 --- a/lib/util/wordaccess_be_unaligned.h +++ /dev/null @@ -1,20 +0,0 @@ -/*============================================================================= - 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; -} |