•
fract32
range of [-1.0, +1.0). This is defined in the C/C++ language as
typedef long fract32
ETSI Header File
The following are summary descriptions of the functions provided by the
ETSI library, as defined in the header file
Short absolute
fract16 abs_s (fract16)
This function returns the 16-bit value that is the absolute value of the
input parameter. Where the input is
is returned.
Short add
fract16 add (fract16, fract16)
This function returns the 16-bit result of addition of the two
input parameters. Saturation occurs with the result being set to
overflow and
0x8000
Short division
fract16 div_s (fract16, fract16)
This function returns the 16-bit result of the fractional integer division of
by
.
and
f1
f2
f1
than
.
f1
Long division
fract16 div_l (fract32, fract16)
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
is a 32-bit fractional data type (1.31 format) having a
for underflow.
must both be positive fractional values with
f2
ETSI_fract_arith.h
, saturation occurs and
0x8000
Compiler
.
0x7fff
fract16
for
0x7fff
greater
f2
1-111
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?