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

SMult32

Signed 32 by 32 bit multiply with 32 bit result.

Declaration

Source position: utility.pas line 370

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: 2021-07-30