add fp{g,s}etprec
This commit is contained in:
parent
2587e6e437
commit
254ee22cb1
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: mi,v 1.1603 2011/03/24 17:05:41 bouyer Exp $
|
||||
# $NetBSD: mi,v 1.1604 2011/03/26 19:55:27 christos Exp $
|
||||
#
|
||||
# Note: don't delete entries from here - mark them as "obsolete" instead.
|
||||
#
|
||||
|
@ -6083,10 +6083,12 @@
|
|||
./usr/share/man/cat3/fparseln.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpclassify.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpgetmask.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpgetprec.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpgetround.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpgetsticky.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fprintf.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpsetmask.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpsetprec.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpsetround.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpsetsticky.0 comp-c-catman .cat
|
||||
./usr/share/man/cat3/fpurge.0 comp-c-catman .cat
|
||||
|
@ -12160,10 +12162,12 @@
|
|||
./usr/share/man/html3/fparseln.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpclassify.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpgetmask.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpgetprec.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpgetround.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpgetsticky.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fprintf.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpsetmask.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpsetprec.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpsetround.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpsetsticky.html comp-c-htmlman html
|
||||
./usr/share/man/html3/fpurge.html comp-c-htmlman html
|
||||
|
@ -18149,10 +18153,12 @@
|
|||
./usr/share/man/man3/fparseln.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpclassify.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpgetmask.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpgetprec.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpgetround.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpgetsticky.3 comp-c-man .man
|
||||
./usr/share/man/man3/fprintf.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpsetmask.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpsetprec.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpsetround.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpsetsticky.3 comp-c-man .man
|
||||
./usr/share/man/man3/fpurge.3 comp-c-man .man
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ieeefp.h,v 1.3 2010/07/31 21:47:54 joerg Exp $ */
|
||||
/* $NetBSD: ieeefp.h,v 1.4 2011/03/26 19:52:20 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Written by J.T. Conklin, Apr 6, 1995
|
||||
|
@ -20,10 +20,18 @@ typedef int fp_except;
|
|||
#define FP_X_IMP FE_INEXACT /* imprecise (loss of precision) */
|
||||
|
||||
typedef enum {
|
||||
FP_RN=FE_TONEAREST, /* round to nearest representable number */
|
||||
FP_RM=FE_DOWNWARD, /* round toward negative infinity */
|
||||
FP_RP=FE_UPWARD, /* round toward positive infinity */
|
||||
FP_RZ=FE_TOWARDZERO /* round to zero (truncate) */
|
||||
FP_RN=FE_TONEAREST, /* round to nearest representable num */
|
||||
FP_RM=FE_DOWNWARD, /* round toward negative infinity */
|
||||
FP_RP=FE_UPWARD, /* round toward positive infinity */
|
||||
FP_RZ=FE_TOWARDZERO /* round to zero (truncate) */
|
||||
} fp_rnd;
|
||||
|
||||
typedef enum {
|
||||
FP_PS = 0, /* 24 bit (single-precision) */
|
||||
FP_PRS, /* reserved */
|
||||
FP_PD, /* 53 bit (double-precision) */
|
||||
FP_PE /* 64 bit (extended-precision) */
|
||||
} fp_prec;
|
||||
|
||||
|
||||
#endif /* _X86_IEEEFP_H_ */
|
||||
|
|
Loading…
Reference in New Issue