DivRemS32
Computes the quotient and remainder of a 32-bit division.
Synopsis
int32 DivRemS32( int32 *rem, int32 d1, int32 d2 )
Description
This function divides one 32-bit integer by another and returns the quotient and remainder.
This function calls the standard C function for division. If you need only the quotient or only the remainder, use the standard C notation for division instead.
Arguments
- rem
- A pointer to a 32-bit integer to store the remainder.
- d1
- The dividend.
- d2
- The divisor.
Return Value
The function returns the quotient of the division. The remainder is deposited in the location pointed to by the rem argument.
Implementation
Folio call implemented in operamath V20.
Associated Files
operamath.h, operamath.lib
Caveats
The function does not detect overflows.
See Also
DivRemU32
(), DivS64(), DivU64(), DivSF16(), DivUF16(), DivRemUF16(), DivRemSF16()