D-3
Copyright 1999-2002 by LSI Logic Corporation. All rights reserved.
Note:
It is not guaranteed that
a
will have the same value as
b
in
future versions of the SDK compiler.
Long L_mula (int var1, int var2)
This function returns a 32-bit result of
the multiplication of a 16-bit variable
var1
with a 16-bit variable
var2
, with
one shift left.
Long L_mulb (int var1, int var2)
This function returns a 32-bit result of
the multiplication of a 16-bit variable
var1
with a 16-bit variable
var2
, with
one shift left.
Long L_maca (long var3, int
var1, int var2)
This function multiplies the 16-bit
variable
var1
by the 16-bit variable
var2
and shifts the result left by 1. This 32-bit
result is added to the 32-bit variable
var3
with saturation and returns the
32-bit result.
Long L_macb (long var3, int
var1, int var2)
This function multiplies the 16-bit
variable
var1
by the 16-bit variable
var2
and shifts the result left by 1. This 32-bit
result is added to the 32 bit variable
var3
with saturation and returns the
32-bit result.
Long L_macna (long var3, int
var1, int var2
This function multiplies the 16-bit
variable
var1
by the 16-bit variable
var2
and shifts the result left by 1. This 32-bit
result is subtracted by the 32-bit variable
var3
with saturation and returns the
32-bit result.
Long L_macnb (long var3, int
var1, int var2)
This function multiplies the 16-bit
variable
var1
by the 16-bit variable
var2
and shifts the result left by 1. This 32-bit
result is subtracted by the 32-bit variable
var3
with saturation and returns the
32-bit result.
Long L_mac2a (long var3, long
var1, long var2)
The lower 16 bits of the variable
var1
is
multiplied with the lower 16 bits of the
variable
var2
. The higher 16 bits of the
variable
var1
is multiplied with the
higher 16 bits of variable
var2
, and the
two 32-bit results are added to the
variable
var3
, which is the return value.