Unit 'utility' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

SDivMod32

Signed 32 by 32 bit division and modulus.

Declaration

Source position: utility.pas line 230

function SDivMod32(

  Dividend: LongInt;

  Divisor: LongInt

):Int64;

Arguments

Dividend

  

The number to divide.

Divisor

  

The to divide by.

Function result

The quotient is returned in the high 32 bits of the result. The remainder in the low 32 bits.

Description

Divides the signed 32 bit dividend by the signed 32 bit divisor and returns a signed 32 bit quotient and remainder.

Errors

It is very hard for a C programmer to obtain the value of the remainder. In fact, its pretty near impossible.

See also

SMult32

  

Signed 32 by 32 bit multiply with 32 bit result.

UDivMod32

  

Unsigned 32 by 32 bit division and modulus.

UMult32

  

Unsigned 32 by 32 bit multiply with 32 bit result.

SMult64

  

Signed 32 by 32 bit multiply with 64 bit result.

UMult64

  

Unsigned 32 by 32 bit multiply with 64 bit result.


Documentation generated on: 2021-07-30