RFA: PATCH: Define IEEE endianness for IP2K
Nick Clifton
nickc@redhat.com
Fri Jan 17 09:38:00 GMT 2003
Hi Jeff,
May I apply the small patch below please ? It adds IEEE endian
determination to the include/machine/ieeefp.h header file for the
IP2K port.
Cheers
Nick
2003-01-17 Nick Clifton <nickc@redhat.com>
* libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
__SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
Index: libc/include/machine/ieeefp.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/machine/ieeefp.h,v
retrieving revision 1.14
diff -c -3 -p -w -r1.14 ieeefp.h
*** libc/include/machine/ieeefp.h 24 Jul 2002 15:44:23 -0000 1.14
--- libc/include/machine/ieeefp.h 17 Jan 2003 09:34:03 -0000
***************
*** 228,233 ****
--- 228,239 ----
#define __IEEE_BIG_ENDIAN
#endif
+ #ifdef __IP2K__
+ #define __IEEE_BIG_ENDIAN
+ #define __SMALL_BITFIELDS
+ #define _DOUBLE_IS_32BITS
+ #endif
+
#ifndef __IEEE_BIG_ENDIAN
#ifndef __IEEE_LITTLE_ENDIAN
#error Endianess not declared!!
More information about the Newlib
mailing list