This function returns the 16-bit result of the subtraction of the two
parameters. Saturation occurs with the result being set to
flow and
0x8000
Long absolute
fract32 L_abs (fract32)
This function returns the 32-bit absolute value of the input parameter. In
cases where the input is equal to
is returned.
0x7fffffff
Long add
fract32 L_add (fract32, fract32)
This function returns the 32-bit saturated result of the addition of the two
input parameters.
Long add with carry
fract32 L_add_c (fract32, fract32)
This function performs 32-bit addition of the two input parameters. Uses
the
flag as additional input when using the ETSI flag variables.
Carry
16-bit variable -> most significant bits (least significant bits zeroed)
fract32 L_deposit_h (fract16)
This function deposits the 16-bit parameter into the 16 most significant
bits of the 32-bit result. The least 16 bits are zeroed.
16-bit variable -> least significant bits (sign extended)
fract32 L_deposit_l (fract16)
This function deposits the 16-bit parameter into the 16 least significant
bits of the 32-bit result. The most significant bits are set to sign extension
for the input.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
for underflow.
0x80000000
0x7fff
, saturation occurs and
Compiler
for over-
1-115
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?