This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[Patch: RL78] Add support for 64-bit doubles
- From: Kaushik Phatak <Kaushik dot Phatak at kpit dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Wed, 14 May 2014 10:57:17 +0000
- Subject: [Patch: RL78] Add support for 64-bit doubles
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp dot mailfrom=Kaushik dot Phatak at kpit dot com;
Hi,
Please find below a patch which adds support for 64-bit doubles to the RL78 target
in the newlib port.
This is a supporting patch for my GCC patch posted earlier,
http://gcc.gnu.org/ml/gcc-patches/2014-05/msg00731.html
Kindly review the below patch.
Thanks & Best Regards,
Kaushik
newlib/Changelog
* libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when double
options is not __RL78_64BIT_DOUBLES__.
diff -upr a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h
--- a/newlib/libc/include/machine/ieeefp.h 2013-07-16 13:18:53.000000000 +0530
+++ b/newlib/libc/include/machine/ieeefp.h 2014-05-14 16:24:00.000000000 +0530
@@ -379,8 +379,10 @@
#ifdef __RL78__
#define __IEEE_LITTLE_ENDIAN
#define __SMALL_BITFIELDS /* 16 Bit INT */
+#ifndef __RL78_64BIT_DOUBLES__
#define _DOUBLE_IS_32BITS
#endif
+#endif
#ifdef __RX__