summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-10-10 22:02:11 +0000
committermiod <miod@openbsd.org>2006-10-10 22:02:11 +0000
commitda7567eb5ddc858ff11c73e3956cec309d9bc249 (patch)
treecfbbc4e043b36923a00b43908a863902fb8b1a9f
parentfgets(3) returns NULL on error, not 0. No functional change, but it makes (diff)
downloadwireguard-openbsd-da7567eb5ddc858ff11c73e3956cec309d9bc249.tar.xz
wireguard-openbsd-da7567eb5ddc858ff11c73e3956cec309d9bc249.zip
Match the SH4 FPSCR bits.
-rw-r--r--sys/arch/sh/include/ieeefp.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/arch/sh/include/ieeefp.h b/sys/arch/sh/include/ieeefp.h
index a76ecb122e6..868db36647e 100644
--- a/sys/arch/sh/include/ieeefp.h
+++ b/sys/arch/sh/include/ieeefp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieeefp.h,v 1.1.1.1 2006/10/06 21:02:55 miod Exp $ */
+/* $OpenBSD: ieeefp.h,v 1.2 2006/10/10 22:02:11 miod Exp $ */
/* $NetBSD: ieeefp.h,v 1.3 2002/04/28 17:10:34 uch Exp $ */
/*
@@ -10,18 +10,19 @@
#define _SH_IEEEFP_H_
typedef int fp_except;
-#define FP_X_INV 0x01 /* invalid operation exception */
-#define FP_X_DNML 0x02 /* denormalization exception */
-#define FP_X_DZ 0x04 /* divide-by-zero exception */
-#define FP_X_OFL 0x08 /* overflow exception */
-#define FP_X_UFL 0x10 /* underflow exception */
-#define FP_X_IMP 0x20 /* imprecise (loss of precision) */
+#define FP_X_INV 0x10 /* invalid operation exception */
+#define FP_X_DNML 0x20 /* denormalization exception */
+#define FP_X_DZ 0x08 /* divide-by-zero exception */
+#define FP_X_OFL 0x04 /* overflow exception */
+#define FP_X_UFL 0x02 /* underflow exception */
+#define FP_X_IMP 0x01 /* imprecise (loss of precision) */
typedef enum {
FP_RN=0, /* round to nearest representable number */
- FP_RM=1, /* round toward negative infinity */
+ FP_RZ=1 /* round to zero (truncate) */
+ /* the following two are not implemented on SH4{,A} */
FP_RP=2, /* round toward positive infinity */
- FP_RZ=3 /* round to zero (truncate) */
+ FP_RM=3 /* round toward negative infinity */
} fp_rnd;
#endif /* !_SH_IEEEFP_H_ */