__setrnd, __builtin_setrnd
Purpose
Sets the rounding mode.
Prototype
double __builtin_setrnd (int mode);
double __setrnd (int mode);
Note:
- The built-in function in the form of
__name
is a synonym of__builtin_name
. - The built-in function in the form of
__name
is provided for compatibility with IBM® XL C/C++ for AIX® 16.1.0 or earlier releases. This built-in function might be deprecated in the future.
Parameters
The allowable values for mode are:
- 0 — round to nearest
- 1 — round to zero
- 2 — round to +infinity
- 3 — round to -infinity