__insert_exp, __builtin_ppc_insert_exp

Purpose

Replaces the exponent of the first parameter with the second parameter and returns the result.

Note: This built-in function is valid only when both of the following conditions are met:
  • The -mcpu option is set to target POWER9 processors or higher.
  • The -q64 option is enabled.

Prototype

double __builtin_ppc_insert_exp (double, unsigned long long);

double __insert_exp (double, unsigned long long);

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.

Usage

The rightmost doubleword of the result is undefined.