This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: PATCH: Define IEEE endianness for IP2K


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!!



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]