Finish moving all IEEE fp types to be the same on all arch's.
This commit is contained in:
parent
a275067a35
commit
13d30a3d17
@ -16,8 +16,8 @@
|
||||
#include <machine/floatingpoint.h>
|
||||
#else /* !__i386__ */
|
||||
__BEGIN_DECLS
|
||||
extern fp_rnd fpgetround __P((void));
|
||||
extern fp_rnd fpsetround __P((fp_rnd));
|
||||
extern fp_rnd_t fpgetround __P((void));
|
||||
extern fp_rnd_t fpsetround __P((fp_rnd_t));
|
||||
extern fp_except_t fpgetmask __P((void));
|
||||
extern fp_except_t fpsetmask __P((fp_except_t));
|
||||
extern fp_except_t fpgetsticky __P((void));
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include <ieeefp.h>
|
||||
#include <machine/fpu.h>
|
||||
|
||||
fp_rnd
|
||||
fp_rnd_t
|
||||
fpgetround()
|
||||
{
|
||||
double fpcrval;
|
||||
|
@ -36,9 +36,9 @@
|
||||
#include <ieeefp.h>
|
||||
#include <machine/fpu.h>
|
||||
|
||||
fp_rnd
|
||||
fp_rnd_t
|
||||
fpsetround(rnd_dir)
|
||||
fp_rnd rnd_dir;
|
||||
fp_rnd_t rnd_dir;
|
||||
{
|
||||
double fpcrval;
|
||||
u_int64_t old, new;
|
||||
|
@ -24,6 +24,6 @@ typedef enum {
|
||||
FP_RM=1, /* round toward negative infinity */
|
||||
FP_RN=2, /* round to nearest representable number */
|
||||
FP_RP=3 /* round toward positive infinity */
|
||||
} fp_rnd;
|
||||
} fp_rnd_t;
|
||||
|
||||
#endif /* _ALPHA_IEEEFP_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user