SW006014 Microchip Technology, SW006014 Datasheet - Page 225

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
© 2008 Microchip Technology Inc.
_Q16mac
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16macNoSat
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16neg
Description:
Include:
Prototype:
Argument:
Return Value:
This function multiplies the two 32-bit inputs, x and y, and accumulates
the product with prod. The function takes care of saturating the result
in case of underflow or overflow.
<libq.h>
_Q16 _Q16mac(_Q16x, _Q16 y, _Q16 prod);
x
ranges from -2147483648 to 2147483647.
y
ranges from -2147483648 to 2147483647.
prod
ranges from -2147483648 to 2147483647.
This function returns the multiplied and accumulated value prod in
Q16 format. This value ranges from 0 to 2147483647.
This function multiplies the two 32 bit inputs, x and y and accumulates
the product with prod.This function only sets the _Q16macSatFlag
variable in case of an overflow or underflow and does not take care of
saturation.
<libq.h>
_Q16 _Q16macNoSat(_Q16 x, _Q16 y, _Q16 prod);
x
ranges from -2147483648 to 2147483647.
y
ranges from -2147483648 to 2147483647.
prod
ranges from -2147483648 to 2147483647.
This function returns the multiplied and accumulated value prod in
Q16 format. This value ranges from 0 to 2147483647.
This function negates x with saturation. The value is saturated in the
case where the input is -2147483648.
<libq.h>
_Q16 _Q16neg(_Q16 x);
x
ranges from -2147483648 to 2147483647.
This function returns the negated value of x in Q16 format. This value
ranges from -2147483648 to 2147483647.
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
DS51456E-page 221

Related parts for SW006014