vec_insert_exp
Purpose
Returns a vector that combines the exponents of elements from one vector with the signs and the significands of elements from another vector.
Note: This built-in function
is valid only when the -mcpu option is set to target POWER9 processors
or higher.
Syntax
d=vec_insert_exp(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector float | vector unsigned int | vector unsigned int |
vector float | vector float | vector unsigned int |
vector double | vector unsigned long long | vector unsigned long long |
vector double | vector double | vector unsigned long long |
Result value
Each element of the result is generated by combining the exponent of the corresponding element
of b
with the sign and the
significand of the corresponding element of a
.
Note: The inserted exponent of
b
is treated as a biased exponent in accordance with the format specified by IEEE
Standard for Binary Floating-Point Arithmetic, IEEE Std. 754, without further processing.