__mulhd, __builtin_ppc_mulhd, __mulhdu, __builtin_ppc_mulhdu
Purpose
Multiply High Doubleword Signed, Multiply High Doubleword Unsigned
Returns the highorder 64 bits of the 128bit product of the two parameters.
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 compiler mode is 64-bit.
Prototype
long long int __builtin_ppc_mulhd ( long int, long int);
unsigned long long int __builtin_ppc_mulhdu (unsigned long int, unsigned long int);
long long int __mulhd ( long int, long int);
unsigned long long int __mulhdu (unsigned long int, unsigned long int);
Note:
- The built-in function in the form of
__nameis a synonym of the built-in function in the form of__builtin_ppc_name. - The built-in function in the form of
__nameis 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
Valid only in 64-bit mode.