Developer Guide and Reference

Contents

Homogeneous General-Computational Operations Functions

Many routines in the
libbfp754
Library are more optimized for Intel® microprocessors than for non-Intel microprocessors.
The Intel® IEEE 754-2008 Binary Conformance Library supports the following functions for homogeneous general-computational operations:

round_integral_nearest_even

Description:
The function rounds floating-point number
x
to its nearest integral value, with the halfway (tied) case rounding to even.
Calling interface:
float __binary32_round_integral_nearest_even(float x);
double __binary64_round_integral_nearest_even(double x);

round_integral_nearest_away

Description:
The function rounds floating-point number
x
to its nearest integral value, with the halfway (tied) case rounding away from zero.
Calling interface:
float __binary32_round_integral_nearest_away(float x);
double __binary64_round_integral_nearest_away(double x);

round_integral_zero

Description:
The function rounds floating-point number
x
to the closest integral value toward zero.
Calling interface:
float __binary32_round_integral_zero(float x);
double __binary64_round_integral_zero(double x);

round_integral_positive

Description:
The function rounds floating-point number
x
to the closest integral value toward positive infinity.
Calling interface:
float __binary32_round_integral_positive(float x);
double __binary64_round_integral_positive(double x);

round_integral_negative

Description:
The function rounds floating-point number
x
to the closest integral value toward negative infinity.
Calling interface: