This chapter lists features to configure the ``Floating Point Unit'' of your machine. The exact behaviour of your Floating Point Unit can't be discussed here in general -- its just machine type dependent.
int precision, int rounding, int exception_mask) |
The following constants are used as precision argument:
mode value | definition via gsl |
---|---|
single_precision | GSL_IEEE_SINGLE_PRECISION |
double_precision | GSL_IEEE_DOUBLE_PRECISION |
extended_precision | GSL_IEEE_EXTENDED_PRECISION |
mode value | definition via gsl |
---|---|
round_to_nearest | GSL_IEEE_ROUND_TO_NEAREST |
round_down | GSL_IEEE_ROUND_DOWN |
round_up | GSL_IEEE_ROUND_UP |
round_to_zero | GSL_IEEE_ROUND_TO_ZERO |
mode value | definition via gsl |
---|---|
mask_invalid | GSL_IEEE_MASK_INVALID |
mask_denormalized | GSL_IEEE_MASK_DENORMALIZED |
mask_division_by_zero | GSL_IEEE_MASK_DIVISION_BY_ZERO |
mask_overflow | GSL_IEEE_MASK_OVERFLOW |
mask_underflow | GSL_IEEE_MASK_UNDERFLOW |
mask_all | GSL_IEEE_MASK_ALL |
trap_inexact | GSL_IEEE_TRAP_INEXACT |
) |
float value) |
(int sign, string mantissa, int exponent, int type)
These values are used as type in bin_repr:
type value | definition via gsl |
---|---|
type_nan | GSL_IEEE_TYPE_NAN |
type_inf | GSL_IEEE_TYPE_INF |
type_normal | GSL_IEEE_TYPE_NORMAL |
type_denormal | GSL_IEEE_TYPE_DENORMAL |
type_zero | GSL_IEEE_TYPE_ZERO |
float value) |
) |
float value) |
) |
) |
float value) |