ccMulInt

Syntax

INT64 = ccMulInt32(A:Int,B:Int)
INT64 = ccMulInt64(A:Int64,B:Int64)

Description

Multiplies 2 Int or 2 Int64 value and stores the product in a Int64.

Parameters

A,B - Int*Int OR Int64*Int64

Return value

The product of the multiplication.
or QWORD 0x8000000000000000 by overflow

Remarks

ccMulInt32() give a smooth handling of overflowing multiplication by Int32s.
It's the same like you would do:
Int64 = [Int64|Int32]*[Int64|Int32]

ccMulInt64() and ccMulInt32() is about 30% faster as "Int64*Int64" or [Int64|Int32]*[Int64|Int32]
Some reason the FPU usage for 64 bit integer arithmetic is not implemented in EB.

Example usage

C64 = ccMulInt32(A32,B32)

See ccMulInt32_Demo.eba
ccMulInt64_Demo.eba