Pragmas - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

Extract a long from two shorts
void L_Extract(fract32 src,fract16 *hi,fract16 *lo)
This function extracts low and high halves of
variables pointed to by the parameters
fract16
culated are:
Hi = bit16 to bit31 of src
Lo = (src - hi<<16)>>1
Fract integer division of two longs
fract32 Div_32(fract32 L_num,fract16 denom_hi,fract16 denom_lo)
This is 32-bit fractional divide operation. The result returned is the
representation of
fract32
and
demon_hi
denom_lo
tional values and
falls within the fractional range.

Pragmas

The compiler supports a number of pragmas. Pragmas are implementa-
tion-specific directives that modify the compiler's behavior. There are two
types of pragma usage: pragma directives and pragma operators.
Pragma directives have the following syntax:
#pragma pragma-directive pragma-directive-operands new-line
Pragma operators have the following syntax:
_Pragma ( string-literal )
When processing a pragma operator, the compiler effectively turns it into
a pragma directive using a non-string version of
means that the following pragma directive
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
divided by
L_num
).
and
L_num
must be less that
L_num
fract32
and
hi
(represented by
L_denom
must both be positive frac-
L_denom
to ensure that the result
L_denom
string-literal
Compiler
type value into
. The values cal-
lo
. This
1-119

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents