Fix the floating-point exception values to line up with the hardware

register bits. Nothing in base uses these as they are deprecated, however
third-party applications, such as perl, expect some of these functions to
exist.

Obtained from:	ABT Systems Ltd
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2015-06-24 12:19:49 +00:00
parent 2907b9f461
commit e2def8eae3

View file

@ -10,12 +10,12 @@
/* Deprecated FPU control interface */
/* FP exception codes */
#define FP_EXCEPT_INV 0
#define FP_EXCEPT_DZ 1
#define FP_EXCEPT_OFL 2
#define FP_EXCEPT_UFL 3
#define FP_EXCEPT_IMP 4
#define FP_EXCEPT_DNML 7
#define FP_EXCEPT_INV 8
#define FP_EXCEPT_DZ 9
#define FP_EXCEPT_OFL 10
#define FP_EXCEPT_UFL 11
#define FP_EXCEPT_IMP 12
#define FP_EXCEPT_DNML 15
typedef int fp_except_t;