This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: RFA: PATCH: Define IEEE endianness for IP2K
- From: "J. Johnston" <jjohnstn at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Fri, 17 Jan 2003 11:51:13 -0500
- Subject: Re: RFA: PATCH: Define IEEE endianness for IP2K
- Organization: Red Hat Inc.
- References: <m34r88nmif.fsf@north-pole.nickc.cambridge.redhat.com>
Yes, go ahead.
-- Jeff J.
Nick Clifton wrote:
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!!