[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'utility' (#aros)

SMult32

Signed 32 by 32 bit multiply with 32 bit result.

Declaration

Source position: utility.pas line 228

function SMult32(

  Arg1: LongInt;

  Arg2: LongInt

):LongInt;

Arguments

Arg1

  

Number to multiply

Arg2

  

Number to multiply

Function result

The signed 32 bit result of multiplying arg1 by arg2.

Description

Performs the signed 32-bit multiplication of arg1 * arg2 and returns a signed 32 bit value.

This can perform the multiplication either using the machines native instructions (if they exist), or in software using a simple algorithm based on expanding algebraic products.

See also

SDivMod32

  

Signed 32 by 32 bit division and modulus.

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: 2017-01-10