DivRemU32

Computes the quotient and remainder of a 32-bit division.

Synopsis

uint32 DivRemU32( uint32 *rem, uint32 d1, uint32 d2 )

Description

This function divides one unsigned 32-bit integer by another and returns the quotient and remainder.

This function calls the standard C function for division. If only the quotient or only the remainder is desired, the standard C notation for divide should be used.

Arguments

rem
A pointer to a unsigned 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

DivRemSF16(), DivRemS32(), DivU64(), DivSF16(), DivUF16(), DivRemUF16(), DivS64()