Module Name:    src
Committed By:   matt
Date:           Thu Jul 18 22:17:57 UTC 2013

Modified Files:
        src/sys/arch/m68k/include: float.h math.h profile.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/m68k/include/float.h
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/m68k/include/math.h
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/m68k/include/profile.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/include/float.h
diff -u src/sys/arch/m68k/include/float.h:1.19 src/sys/arch/m68k/include/float.h:1.20
--- src/sys/arch/m68k/include/float.h:1.19	Sun Dec 11 12:17:53 2005
+++ src/sys/arch/m68k/include/float.h	Thu Jul 18 22:17:57 2013
@@ -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_ */

Index: src/sys/arch/m68k/include/math.h
diff -u src/sys/arch/m68k/include/math.h:1.7 src/sys/arch/m68k/include/math.h:1.8
--- src/sys/arch/m68k/include/math.h:1.7	Sun Dec 11 12:17:53 2005
+++ src/sys/arch/m68k/include/math.h	Thu Jul 18 22:17:57 2013
@@ -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

Index: src/sys/arch/m68k/include/profile.h
diff -u src/sys/arch/m68k/include/profile.h:1.20 src/sys/arch/m68k/include/profile.h:1.21
--- src/sys/arch/m68k/include/profile.h:1.20	Wed Mar 21 19:59:18 2012
+++ src/sys/arch/m68k/include/profile.h	Thu Jul 18 22:17:57 2013
@@ -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__)); \

Reply via email to