Signed 32 by 32 bit division and modulus.
Source position: utility.pas line 184
function SDivMod32( |
Dividend: LongInt; |
Divisor: LongInt |
):LongInt; |
Dividend |
|
The number to divide. |
Divisor |
|
The to divide by. |
The quotient is returned in the high 32 bits of the result. The remainder in the low 32 bits.
Divides the signed 32 bit dividend by the signed 32 bit divisor and returns a signed 32 bit quotient and remainder.
It is very hard for a C programmer to obtain the value of the remainder. In fact, its pretty near impossible.
|
Signed 32 by 32 bit multiply with 32 bit result. |
|
|
Unsigned 32 by 32 bit division and modulus. |
|
|
Unsigned 32 by 32 bit multiply with 32 bit result. |
|
|
Signed 32 by 32 bit multiply with 64 bit result. |
|
|
Unsigned 32 by 32 bit multiply with 64 bit result. |