This function returns the 32-bit result of the negation of the parameter.
Where the input parameter is
is returned.
0x7fffffff
Long saturation
fract32 L_sat (fract32)
The resultant variable is set to
flags are set (underflow condition), else if
set to
0x7fffffff
checking or setting of the
Long shift left
fract32 L_shl (fract32, fract16)
This function arithmetically shifts the 32-bit first parameter to the left by
the value given in the 16-bit second parameter. The empty bits of the
32-bit result are zero filled.
If the second parameter is negative, the shift performed is to the right with
sign-extended. The result is saturated in cases of overflow and underflow.
Long shift right
fract32 L_shr (fract32, fract16)
This function arithmetically shifts the 32-bit first parameter to the right
by the value given in the 16-bit second parameter with sign extension. If
the shifting value is negative, the source is shifted to the left. The result is
saturated in cases of overflow and underflow.
Long shift right with rounding
fract32 L_shr_r (fract32, fract16)
This function performs the shift-right operation as per
rounding.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
0x80000000
0x80000000
. The default revision of the library simply returns as no
Overflow
saturation occurs and
if
and
Carry
is set, the resultant is
Overflow
and
flags is performed.
Carry
Compiler
ETSI
Overflow
but with
L_shr
1-117
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers