__divde, __builtin_divde

Purpose

Divide Doubleword Extended

Returns the result of a doubleword extended division. The result has a value equal to dividend/divisor.

Note: This built-in function is valid only when the compiler is in the 64-bit compilation mode.

Prototype

long long __builtin_divde (long long dividend, long long divisor);

long long __divde (long long dividend, long long divisor);

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.

Usage

If the result of the division is larger than 32 bits or if the divisor is 0, the return value of the function is undefined.