24 #ifndef PPL_fpu_sparc_inlines_hh
25 #define PPL_fpu_sparc_inlines_hh 1
27 #ifdef PPL_HAVE_IEEEFP_H
30 #define PPL_FPU_TONEAREST ((int) FP_RN)
31 #define PPL_FPU_UPWARD ((int) FP_RP)
32 #define PPL_FPU_DOWNWARD ((int) FP_RM)
33 #define PPL_FPU_TOWARDZERO ((int) FP_RZ)
48 fpsetround((fp_rnd) dir);
58 fp_except except = fpgetmask();
65 fpsetround((fp_rnd) w);
70 return (fpgetmask() & FP_X_IMP) ? 1 : 0;
75 #endif // !defined(PPL_HAVE_IEEEFP_H)
77 #endif // !defined(PPL_fpu_sparc_inlines_hh)
fpu_rounding_direction_type
fpu_rounding_control_word_type fpu_save_rounding_direction(fpu_rounding_direction_type dir)
Sets the FPU rounding direction to dir and returns the rounding control word previously in use...
int fpu_check_inexact()
Queries the inexact computation status.
fpu_rounding_direction_type fpu_get_rounding_direction()
Returns the current FPU rounding direction.
void fpu_reset_inexact()
Clears the inexact computation status.
void fpu_restore_rounding_direction(fpu_rounding_control_word_type)
Restores the FPU rounding rounding control word to cw.
The entire library is confined to this namespace.
void fpu_initialize_control_functions()
Initializes the FPU control functions.
void fpu_set_rounding_direction(fpu_rounding_direction_type dir)
Sets the FPU rounding direction to dir.
fpu_rounding_control_word_type