Remove little-endian assumption from library code.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-01-29 17:01:53 +00:00
1 parent e3d9342716
commit 1abb530930
1 file changed
+8 -1
+8 -1
View File
@@ -2,6 +2,7 @@
#include <xen/ctype.h>
#include <xen/lib.h>
#include <xen/types.h>
#include <asm/byteorder.h>
/* for ctype.h */
unsigned char _ctype[] = {
@@ -80,9 +81,15 @@ union uu {
long sl[2]; /* as two signed longs */
unsigned long ul[2]; /* as two unsigned longs */
};
/* XXX RN: Yuck hardcoded endianess :) */
#ifdef __BIG_ENDIAN
#define _QUAD_HIGHWORD 0
#define _QUAD_LOWWORD 1
#else /* __LITTLE_ENDIAN */
#define _QUAD_HIGHWORD 1
#define _QUAD_LOWWORD 0
#endif
/*
* Define high and low longwords.
*/
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.