Don't define a new enum. Just #define round_* to their FP_Rx instead.

This commit is contained in:
matt 2011-07-07 07:14:57 +00:00
parent e32f731829
commit 85c07878cd
6 changed files with 30 additions and 42 deletions

View File

@ -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 @@ Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
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
/*
-------------------------------------------------------------------------------

View File

@ -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 @@ Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
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
/*
-------------------------------------------------------------------------------

View File

@ -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 @@ Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
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
/*
-------------------------------------------------------------------------------

View File

@ -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 @@ Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
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
/*
-------------------------------------------------------------------------------

View File

@ -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 @@ Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
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
/*
-------------------------------------------------------------------------------

View File

@ -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 @@ Software IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
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
/*
-------------------------------------------------------------------------------