__fsel, __builtin_ppc_fsel, __fsels, __builtin_ppc_fsels

Purpose

Floating Select, Floating Select Single

Returns the second argument if the first argument is greater than or equal to zero; returns the third argument otherwise.

Prototype

double __builtin_ppc_fsel (double, double, double);

float __builtin_ppc_fsels (float, float, float);

double __fsel (double, double, double);

float __fsels (float, float, float);

Note:
  • The built-in function in the form of __name is a synonym of the built-in function in the form of __builtin_ppc_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 form might be deprecated in the future.