SW006014 Microchip Technology, SW006014 Datasheet - Page 228

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
DS51456E-page 224
_Q16shr
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16shrNoSat
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16sin
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16sinPI
Description:
Include:
Prototype:
Argument:
Return Value:
The function shifts the input argument x by y number of bits, to the right
if y is positive or to the left if y is negative. The function takes care of
saturating the result, in case of underflow or overflow.
<libq.h>
_Q16 _Q16shr(_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 right
if y is positive or to the left if y is negative. This function sets the
_Q16shrSatFlag variable in case of underflow or overflow but does
not take care of saturation.
<libq.h>
_Q16 _Q16shrNoSat(_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.
This function finds the sine of a Q16 value.
<libq.h>
_Q16 _Q16sin(_Q16 x);
x
ranges from -2147483648 to 2147483647.
This function returns the sine of x in Q16 format. This value ranges
from -65566 to 65536.
This function finds the sine of PI (π) times a Q16 value.
<libq.h>
_Q16 _Q16sinPI(_Q16 x);
x
ranges from -2147483648 to 2147483647.
This function returns the sine of PI times x in Q16 format. This value
ranges from -65536 to 65536.
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.
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
© 2008 Microchip Technology Inc.

Related parts for SW006014