Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch Don't define a new enum. Just #define round_*...
details: https://anonhg.NetBSD.org/src/rev/36a03d45e6c0
branches: trunk
changeset: 767029:36a03d45e6c0
user: matt <matt%NetBSD.org@localhost>
date: Thu Jul 07 07:14:57 2011 +0000
description:
Don't define a new enum. Just #define round_* to their FP_Rx instead.
diffstat:
lib/libc/arch/arm/softfloat/softfloat.h | 12 +++++-------
lib/libc/arch/m68k/softfloat/softfloat.h | 12 +++++-------
lib/libc/arch/mips/softfloat/softfloat.h | 12 +++++-------
lib/libc/arch/powerpc/softfloat/softfloat.h | 12 +++++-------
lib/libc/arch/sh3/softfloat/softfloat.h | 12 +++++-------
lib/libc/arch/sparc64/softfloat/softfloat.h | 12 +++++-------
6 files changed, 30 insertions(+), 42 deletions(-)
diffs (156 lines):
diff -r a96763739eb0 -r 36a03d45e6c0 lib/libc/arch/arm/softfloat/softfloat.h
--- a/lib/libc/arch/arm/softfloat/softfloat.h Thu Jul 07 07:06:21 2011 +0000
+++ b/lib/libc/arch/arm/softfloat/softfloat.h Thu Jul 07 07:14:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.h,v 1.8 2011/07/04 08:02:34 matt Exp $ */
+/* $NetBSD: softfloat.h,v 1.9 2011/07/07 07:14:57 matt Exp $ */
/* This is a derivative work. */
@@ -84,12 +84,10 @@
-------------------------------------------------------------------------------
*/
extern fp_rnd float_rounding_mode;
-enum {
- float_round_nearest_even = FP_RN,
- float_round_to_zero = FP_RZ,
- float_round_down = FP_RM,
- float_round_up = FP_RP
-};
+#define float_round_nearest_even FP_RN
+#define float_round_to_zero FP_RZ
+#define float_round_down FP_RM
+#define float_round_up FP_RP
/*
-------------------------------------------------------------------------------
diff -r a96763739eb0 -r 36a03d45e6c0 lib/libc/arch/m68k/softfloat/softfloat.h
--- a/lib/libc/arch/m68k/softfloat/softfloat.h Thu Jul 07 07:06:21 2011 +0000
+++ b/lib/libc/arch/m68k/softfloat/softfloat.h Thu Jul 07 07:14:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.h,v 1.3 2011/07/04 08:02:34 matt Exp $ */
+/* $NetBSD: softfloat.h,v 1.4 2011/07/07 07:14:57 matt Exp $ */
/* This is a derivative work. */
@@ -84,12 +84,10 @@
-------------------------------------------------------------------------------
*/
extern fp_rnd float_rounding_mode;
-enum {
- float_round_nearest_even = FP_RN,
- float_round_to_zero = FP_RZ,
- float_round_down = FP_RM,
- float_round_up = FP_RP
-};
+#define float_round_nearest_even FP_RN
+#define float_round_to_zero FP_RZ
+#define float_round_down FP_RM
+#define float_round_up FP_RP
/*
-------------------------------------------------------------------------------
diff -r a96763739eb0 -r 36a03d45e6c0 lib/libc/arch/mips/softfloat/softfloat.h
--- a/lib/libc/arch/mips/softfloat/softfloat.h Thu Jul 07 07:06:21 2011 +0000
+++ b/lib/libc/arch/mips/softfloat/softfloat.h Thu Jul 07 07:14:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.h,v 1.4 2011/07/04 08:02:34 matt Exp $ */
+/* $NetBSD: softfloat.h,v 1.5 2011/07/07 07:14:57 matt Exp $ */
/* This is a derivative work. */
@@ -86,12 +86,10 @@
-------------------------------------------------------------------------------
*/
extern fp_rnd float_rounding_mode;
-enum {
- float_round_nearest_even = FP_RN,
- float_round_to_zero = FP_RZ,
- float_round_down = FP_RM,
- float_round_up = FP_RP
-};
+#define float_round_nearest_even FP_RN
+#define float_round_to_zero FP_RZ
+#define float_round_down FP_RM
+#define float_round_up FP_RP
/*
-------------------------------------------------------------------------------
diff -r a96763739eb0 -r 36a03d45e6c0 lib/libc/arch/powerpc/softfloat/softfloat.h
--- a/lib/libc/arch/powerpc/softfloat/softfloat.h Thu Jul 07 07:06:21 2011 +0000
+++ b/lib/libc/arch/powerpc/softfloat/softfloat.h Thu Jul 07 07:14:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.h,v 1.6 2011/07/04 08:02:34 matt Exp $ */
+/* $NetBSD: softfloat.h,v 1.7 2011/07/07 07:14:57 matt Exp $ */
/* This is a derivative work. */
@@ -84,12 +84,10 @@
-------------------------------------------------------------------------------
*/
extern fp_rnd float_rounding_mode;
-enum {
- float_round_nearest_even = FP_RN,
- float_round_to_zero = FP_RZ,
- float_round_down = FP_RM,
- float_round_up = FP_RP
-};
+#define float_round_nearest_even FP_RN
+#define float_round_to_zero FP_RZ
+#define float_round_down FP_RM
+#define float_round_up FP_RP
/*
-------------------------------------------------------------------------------
diff -r a96763739eb0 -r 36a03d45e6c0 lib/libc/arch/sh3/softfloat/softfloat.h
--- a/lib/libc/arch/sh3/softfloat/softfloat.h Thu Jul 07 07:06:21 2011 +0000
+++ b/lib/libc/arch/sh3/softfloat/softfloat.h Thu Jul 07 07:14:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.h,v 1.10 2011/07/04 08:02:34 matt Exp $ */
+/* $NetBSD: softfloat.h,v 1.11 2011/07/07 07:14:57 matt Exp $ */
/* This is a derivative work. */
@@ -84,12 +84,10 @@
-------------------------------------------------------------------------------
*/
extern fp_rnd float_rounding_mode;
-enum {
- float_round_nearest_even = FP_RN,
- float_round_to_zero = FP_RZ,
- float_round_down = FP_RM,
- float_round_up = FP_RP
-};
+#define float_round_nearest_even FP_RN
+#define float_round_to_zero FP_RZ
+#define float_round_down FP_RM
+#define float_round_up FP_RP
/*
-------------------------------------------------------------------------------
diff -r a96763739eb0 -r 36a03d45e6c0 lib/libc/arch/sparc64/softfloat/softfloat.h
--- a/lib/libc/arch/sparc64/softfloat/softfloat.h Thu Jul 07 07:06:21 2011 +0000
+++ b/lib/libc/arch/sparc64/softfloat/softfloat.h Thu Jul 07 07:14:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.h,v 1.7 2011/07/04 08:02:35 matt Exp $ */
+/* $NetBSD: softfloat.h,v 1.8 2011/07/07 07:14:57 matt Exp $ */
/* This is a derivative work. */
@@ -86,12 +86,10 @@
-------------------------------------------------------------------------------
*/
extern fp_rnd float_rounding_mode;
-enum {
- float_round_nearest_even = FP_RN,
- float_round_to_zero = FP_RZ,
- float_round_down = FP_RM,
- float_round_up = FP_RP
-};
+#define float_round_nearest_even FP_RN
+#define float_round_to_zero FP_RZ
+#define float_round_down FP_RM
+#define float_round_up FP_RP
/*
-------------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index