summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-07-05 06:10:21 +0000
committerbde <bde@FreeBSD.org>2006-07-05 06:10:21 +0000
commitc3398d0c39c311469039d75a338b0ecf225ae062 (patch)
tree6d96dd6c5a644899fb299ef237f5cda9d8242986 /sys/ia64
parent3f1d55d81de36db78c714220e552ead20ebe0523 (diff)
downloadFreeBSD-src-c3398d0c39c311469039d75a338b0ecf225ae062.zip
FreeBSD-src-c3398d0c39c311469039d75a338b0ecf225ae062.tar.gz
Fixed FP_R*. fp{get_set}round() apparently never worked on ia64, since
the alpha values were used and are quite different. Fixed some style bugs by copying from the i386 version where it is better.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/ieeefp.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ia64/include/ieeefp.h b/sys/ia64/include/ieeefp.h
index a97926b..3b0cd4b 100644
--- a/sys/ia64/include/ieeefp.h
+++ b/sys/ia64/include/ieeefp.h
@@ -39,10 +39,10 @@ typedef int fp_except_t;
#define FP_X_IMP IA64_FPSR_TRAP_ID /* imprecise(inexact) exception */
typedef enum {
- FP_RZ=0, /* round to zero (truncate) */
- FP_RM=1, /* round toward negative infinity */
- FP_RN=2, /* round to nearest representable number */
- FP_RP=3 /* round toward positive infinity */
+ FP_RN = 0, /* round to nearest */
+ FP_RM, /* round toward minus infinity */
+ FP_RP, /* round toward plus infinity */
+ FP_RZ /* round toward zero */
} fp_rnd_t;
-#endif /* _MACHINE_IEEEFP_H_ */
+#endif /* !_MACHINE_IEEEFP_H_ */
OpenPOWER on IntegriCloud