Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/m68k/include Coldfire FPU looks like the 68010 FPU ...



details:   https://anonhg.NetBSD.org/src/rev/571201277f7d
branches:  trunk
changeset: 788746:571201277f7d
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jul 18 22:17:57 2013 +0000

description:
Coldfire FPU looks like the 68010 FPU (no long double)

diffstat:

 sys/arch/m68k/include/float.h   |  18 ++++++++++++++----
 sys/arch/m68k/include/math.h    |   4 ++--
 sys/arch/m68k/include/profile.h |   4 ++--
 3 files changed, 18 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 69654617bea7 -r 571201277f7d sys/arch/m68k/include/float.h
--- a/sys/arch/m68k/include/float.h     Thu Jul 18 22:15:45 2013 +0000
+++ b/sys/arch/m68k/include/float.h     Thu Jul 18 22:17:57 2013 +0000
@@ -1,9 +1,19 @@
-/*     $NetBSD: float.h,v 1.19 2005/12/11 12:17:53 christos Exp $      */
+/*     $NetBSD: float.h,v 1.20 2013/07/18 22:17:57 matt Exp $  */
 
 #ifndef _M68K_FLOAT_H_
 #define _M68K_FLOAT_H_
 
-#ifndef __mc68010__
+#if defined(__LDBL_MANT_DIG__)
+#define LDBL_MANT_DIG  __LDBL_MANT_DIG__
+#define LDBL_EPSILON   __LDBL_EPSILON__
+#define LDBL_DIG       __LDBL_DIG__
+#define LDBL_MIN_EXP   __LDBL_MIN_EXP__
+#define LDBL_MIN       __LDBL_MIN__
+#define LDBL_MIN_10_EXP        __LDBL_MIN_10_EXP__
+#define LDBL_MAX_EXP   __LDBL_MAX_EXP__
+#define LDBL_MAX       __LDBL_MAX__
+#define LDBL_MAX_10_EXP        __LDBL_MAX_10_EXP__
+#elif !defined(__mc68010__) && !defined(__mcoldfire__)
 #define LDBL_MANT_DIG  64
 #define LDBL_EPSILON   1.0842021724855044340E-19L
 #define LDBL_DIG       18
@@ -17,7 +27,7 @@
 
 #include <sys/float_ieee754.h>
 
-#ifndef __mc68010__
+#if !defined(__mc68010__) && !defined(__mcoldfire__)
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || \
     ((__STDC_VERSION__ - 0) >= 199901L) || \
@@ -26,6 +36,6 @@
     defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
 #define        DECIMAL_DIG     21
 #endif /* !defined(_ANSI_SOURCE) && ... */
-#endif /* !__mc68010__ */
+#endif /* !__mc68010__ && !__mcoldfire__ */
 
 #endif /* !_M68K_FLOAT_H_ */
diff -r 69654617bea7 -r 571201277f7d sys/arch/m68k/include/math.h
--- a/sys/arch/m68k/include/math.h      Thu Jul 18 22:15:45 2013 +0000
+++ b/sys/arch/m68k/include/math.h      Thu Jul 18 22:17:57 2013 +0000
@@ -1,6 +1,6 @@
-/*     $NetBSD: math.h,v 1.7 2005/12/11 12:17:53 christos Exp $        */
+/*     $NetBSD: math.h,v 1.8 2013/07/18 22:17:57 matt Exp $    */
 
-#ifndef __mc68010__
+#if !defined(__mc68010__) && !defined(__mcoldfire__)
 #define        __HAVE_LONG_DOUBLE
 #endif
 #define        __HAVE_NANF
diff -r 69654617bea7 -r 571201277f7d sys/arch/m68k/include/profile.h
--- a/sys/arch/m68k/include/profile.h   Thu Jul 18 22:15:45 2013 +0000
+++ b/sys/arch/m68k/include/profile.h   Thu Jul 18 22:17:57 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: profile.h,v 1.20 2012/03/21 19:59:18 he Exp $  */
+/*     $NetBSD: profile.h,v 1.21 2013/07/18 22:17:57 matt Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
 #define        MCOUNT_ENTRY    "mcount"
 #endif
 
-#ifndef        __mc68010__
+#if !defined(__mc68010__) && !defined(__mcoldfire__)
 #define        MCOUNT \
 extern void mcount(void) __asm(MCOUNT_ENTRY) \
        __attribute__((__no_instrument_function__)); \



Home | Main Index | Thread Index | Old Index