Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc Consistently declare the types of float_rounding_mo...
details: https://anonhg.NetBSD.org/src/rev/a164c5273d8d
branches: trunk
changeset: 526584:a164c5273d8d
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Mon May 06 19:05:00 2002 +0000
description:
Consistently declare the types of float_rounding_mode and float_exception_flags
as fp_rnd and fp_except respectively.
diffstat:
lib/libc/arch/arm/softfloat/softfloat.h | 4 ++--
lib/libc/arch/powerpc/softfloat/softfloat.h | 4 ++--
lib/libc/arch/sh3/softfloat/softfloat.h | 6 +++---
lib/libc/arch/sparc64/softfloat/softfloat.h | 4 ++--
lib/libc/softfloat/softfloat.c | 8 ++++----
5 files changed, 13 insertions(+), 13 deletions(-)
diffs (119 lines):
diff -r 3b652c3d9fd5 -r a164c5273d8d lib/libc/arch/arm/softfloat/softfloat.h
--- a/lib/libc/arch/arm/softfloat/softfloat.h Mon May 06 18:53:30 2002 +0000
+++ b/lib/libc/arch/arm/softfloat/softfloat.h Mon May 06 19:05:00 2002 +0000
@@ -78,7 +78,7 @@
Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
-extern int float_rounding_mode;
+extern fp_rnd float_rounding_mode;
enum {
float_round_nearest_even = FP_RN,
float_round_to_zero = FP_RZ,
@@ -91,7 +91,7 @@
Software IEC/IEEE floating-point exception flags.
-------------------------------------------------------------------------------
*/
-extern int float_exception_flags;
+extern fp_except float_exception_flags;
enum {
float_flag_inexact = FP_X_IMP,
float_flag_underflow = FP_X_UFL,
diff -r 3b652c3d9fd5 -r a164c5273d8d lib/libc/arch/powerpc/softfloat/softfloat.h
--- a/lib/libc/arch/powerpc/softfloat/softfloat.h Mon May 06 18:53:30 2002 +0000
+++ b/lib/libc/arch/powerpc/softfloat/softfloat.h Mon May 06 19:05:00 2002 +0000
@@ -78,7 +78,7 @@
Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
-extern int8 float_rounding_mode;
+extern fp_rnd float_rounding_mode;
enum {
float_round_nearest_even = FP_RN,
float_round_to_zero = FP_RZ,
@@ -91,7 +91,7 @@
Software IEC/IEEE floating-point exception flags.
-------------------------------------------------------------------------------
*/
-extern int8 float_exception_flags;
+extern fp_except float_exception_flags;
enum {
float_flag_inexact = FP_X_IMP,
float_flag_underflow = FP_X_UFL,
diff -r 3b652c3d9fd5 -r a164c5273d8d lib/libc/arch/sh3/softfloat/softfloat.h
--- a/lib/libc/arch/sh3/softfloat/softfloat.h Mon May 06 18:53:30 2002 +0000
+++ b/lib/libc/arch/sh3/softfloat/softfloat.h Mon May 06 19:05:00 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.h,v 1.5 2001/04/26 01:00:30 simonb Exp $ */
+/* $NetBSD: softfloat.h,v 1.6 2002/05/06 19:05:01 bjh21 Exp $ */
/*
===============================================================================
@@ -79,7 +79,7 @@
Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
-extern int8 float_rounding_mode;
+extern fp_rnd float_rounding_mode;
enum {
float_round_nearest_even = FP_RN,
float_round_to_zero = FP_RZ,
@@ -92,7 +92,7 @@
Software IEC/IEEE floating-point exception flags.
-------------------------------------------------------------------------------
*/
-extern int8 float_exception_flags;
+extern fp_except float_exception_flags;
enum {
float_flag_inexact = FP_X_IMP,
float_flag_underflow = FP_X_UFL,
diff -r 3b652c3d9fd5 -r a164c5273d8d lib/libc/arch/sparc64/softfloat/softfloat.h
--- a/lib/libc/arch/sparc64/softfloat/softfloat.h Mon May 06 18:53:30 2002 +0000
+++ b/lib/libc/arch/sparc64/softfloat/softfloat.h Mon May 06 19:05:00 2002 +0000
@@ -80,7 +80,7 @@
Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
-extern int8 float_rounding_mode;
+extern fp_rnd float_rounding_mode;
enum {
float_round_nearest_even = FP_RN,
float_round_to_zero = FP_RZ,
@@ -93,7 +93,7 @@
Software IEC/IEEE floating-point exception flags.
-------------------------------------------------------------------------------
*/
-extern int8 float_exception_flags;
+extern fp_except float_exception_flags;
enum {
float_flag_inexact = FP_X_IMP,
float_flag_underflow = FP_X_UFL,
diff -r 3b652c3d9fd5 -r a164c5273d8d lib/libc/softfloat/softfloat.c
--- a/lib/libc/softfloat/softfloat.c Mon May 06 18:53:30 2002 +0000
+++ b/lib/libc/softfloat/softfloat.c Mon May 06 19:05:00 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.c,v 1.7 2002/03/10 14:15:09 bjh21 Exp $ */
+/* $NetBSD: softfloat.c,v 1.8 2002/05/06 19:05:00 bjh21 Exp $ */
/*
* This version hacked for use with gcc -msoft-float by bjh21.
@@ -46,7 +46,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: softfloat.c,v 1.7 2002/03/10 14:15:09 bjh21 Exp $");
+__RCSID("$NetBSD: softfloat.c,v 1.8 2002/05/06 19:05:00 bjh21 Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef SOFTFLOAT_FOR_GCC
@@ -73,8 +73,8 @@
and exception flags.
-------------------------------------------------------------------------------
*/
-int8 float_rounding_mode = float_round_nearest_even;
-int8 float_exception_flags = 0;
+fp_rnd float_rounding_mode = float_round_nearest_even;
+fp_except float_exception_flags = 0;
#ifdef FLOATX80
int8 floatx80_rounding_precision = 80;
#endif
Home |
Main Index |
Thread Index |
Old Index