DivU64

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

Synopsis

int64 *DivU64( uint64 *q, uint64 *r, uint64 *d1, uint64 *d2 )

Description

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

Arguments

q
A pointer to a 64-bit integer to store the quotient.
r
A pointer to a 64-bit integer to store the remainder.
d1
A pointer to the dividend.
d2
A pointer to the divisor.

Return Value

The function returns a pointer to q. The quotient is deposited in the location pointed to by q. The remainder is deposited in the location pointed to by r.

Implementation

Folio call implemented in operamath V20.

Associated Files

operamath.h, operamath.lib

Caveats

The function does not detect overflows.

See Also

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