diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-09-28 15:18:16 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-09-28 15:18:16 +0000 |
commit | 0810f0de36435b98b52d21122b66ed52eea8705d (patch) | |
tree | b9fa0bfef1030fe894463949a5b0f942b670a82d /sys/arch | |
parent | 88bacd9534115eb3b437910045f06b18de993dd5 (diff) |
proper values for ieee rounding modes (from NetBSD)
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc/include/ieeefp.h | 6 | ||||
-rw-r--r-- | sys/arch/sparc64/include/ieeefp.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc/include/ieeefp.h b/sys/arch/sparc/include/ieeefp.h index eabf383ec9d..c3fd819eb2f 100644 --- a/sys/arch/sparc/include/ieeefp.h +++ b/sys/arch/sparc/include/ieeefp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieeefp.h,v 1.3 1997/08/08 08:26:25 downsj Exp $ */ +/* $OpenBSD: ieeefp.h,v 1.4 2001/09/28 15:18:15 jason Exp $ */ /* * Written by J.T. Conklin, Apr 6, 1995 @@ -18,8 +18,8 @@ typedef int fp_except; typedef enum { FP_RN=0, /* round to nearest representable number */ FP_RZ=1, /* round to zero (truncate) */ - FP_RM=2, /* round toward negative infinity */ - FP_RP=3 /* round toward positive infinity */ + FP_RP=2, /* round toward positive infinity */ + FP_RM=3 /* round toward negative infinity */ } fp_rnd; #endif /* _SPARC_IEEEFP_H_ */ diff --git a/sys/arch/sparc64/include/ieeefp.h b/sys/arch/sparc64/include/ieeefp.h index 9a65767538e..b25b1e3b123 100644 --- a/sys/arch/sparc64/include/ieeefp.h +++ b/sys/arch/sparc64/include/ieeefp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieeefp.h,v 1.1 2001/08/23 15:30:34 art Exp $ */ +/* $OpenBSD: ieeefp.h,v 1.2 2001/09/28 15:18:15 jason Exp $ */ /* * Written by J.T. Conklin, Apr 6, 1995 * Public domain. @@ -17,8 +17,8 @@ typedef int fp_except; typedef enum { FP_RN=0, /* round to nearest representable number */ FP_RZ=1, /* round to zero (truncate) */ - FP_RM=2, /* round toward negative infinity */ - FP_RP=3 /* round toward positive infinity */ + FP_RP=2, /* round toward positive infinity */ + FP_RM=3 /* round toward negative infinity */ } fp_rnd; #endif /* _SPARC_IEEEFP_H_ */ |