24 #ifndef PPL_fpu_defs_hh
25 #define PPL_fpu_defs_hh 1
83 #if PPL_CAN_CONTROL_FPU
85 #if defined(__i386__) && (defined(__GNUC__) || defined(__INTEL_COMPILER))
87 #elif defined(PPL_HAVE_IEEEFP_H) \
88 && (defined(__sparc) \
90 || defined(__sparc__))
92 #elif defined(PPL_HAVE_FENV_H)
95 #error "PPL_CAN_CONTROL_FPU evaluates to true: why?"
98 #else // !PPL_CAN_CONTROL_FPU
102 #endif // !PPL_CAN_CONTROL_FPU
104 #endif // !defined(PPL_fpu_defs_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
fpu_rounding_control_word_type fpu_save_rounding_direction_reset_inexact(fpu_rounding_direction_type dir)
Sets the FPU rounding direction to dir, clears the inexact computation status, and returns the roundi...