SW006013 Microchip Technology, SW006013 Datasheet - Page 227

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
_Q16reciprocalQ15
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16reciprocalQ16
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16shl
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16shlNoSat
Description:
Include:
Prototype:
Argument:
Return Value:
This function returns the reciprocal of a Q15 value. Since the input
range lies in the -1 to +1 region, the output is always greater than the -1
or +1 region. So Q16 format is used to represent the output.
<libq.h>
_Q16 _Q16reciprocalQ15(_Q15 x);
x
2
This function returns the reciprocal of x in Q16 format. This value
ranges from -2147483648 to 2147418112.
This function returns the reciprocal value of the input.
<libq.h>
_Q16 _Q16reciprocalQ16(_Q16 x);
x
ranges from -2147483648 to 2147483647.
This function returns the reciprocal of x in Q16 format. The value of this
output ranges from -2147483648 to 2147483647.
The function shifts the input argument x by y number of bits, to the left
if y is positive or to the right if y is negative. The function takes care of
saturating the result, in case of underflow or overflow.
<libq.h>
_Q16 _Q16shl(_Q16 x, short y);
x
ranges from -2147483648 to 2147483647.
y
This function returns the shifted value of x in Q16 format. This value
ranges from -2147483648 to 2147483647.
The function shifts the input argument x by y number of bits, to the left
if y is positive or to the right if y is negative. This function sets the
_Q16shlSatFlag variable in case of underflow or overflow but does
not take care of saturation.
<libq.h>
_Q16 _Q16shlNoSat(_Q16 x, short y);
x
ranges from -2147483648 to 2147483647.
y
This function returns the shifted value of x in Q16 format. This value
ranges from -2147483648 to 2147483647.
15
-1. The value of this argument ranges from -32768 to 32767.
a fixed point number in Q15 format, which ranges from -2
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
an integer number, which ranges from -32 to +32.
a fixed point number in Q16 format. The value of this argument
an integer number, which ranges from -32 to +32.
DS51456E-page 223
15
to

Related parts for SW006013