07.04.2013 Views

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

__builtin_mulss<br />

Built-in Functions<br />

Argument: p0 multiplic<strong>and</strong><br />

p1 multiplier<br />

Return Value: Returns the signed long integer value of the product p0 x p1.<br />

Assembler Operator<br />

/ Machine<br />

Instruction:<br />

mul.ss<br />

__builtin_mulsu<br />

Description: Computes the product p0 x p1. Function arguments are integers with<br />

mixed signs, <strong>and</strong> the function result is a signed long integer. The comm<strong>and</strong>-line<br />

option -Wconversions can be used to detect unexpected<br />

sign conversions. This function supports the full range of addressing<br />

modes of the instruction, including immediate mode <strong>for</strong> oper<strong>and</strong> p1.<br />

Prototype: signed long __builtin_mulsu(const signed int p0,<br />

const unsigned int p1);<br />

Argument: p0 multiplic<strong>and</strong><br />

p1 multiplier<br />

Return Value: Returns the signed long integer value of the product p0 x p1.<br />

Assembler Operator<br />

/ Machine<br />

Instruction:<br />

mul.su<br />

__builtin_mulus<br />

Description: Computes the product p0 x p1. Function arguments are integers with<br />

mixed signs, <strong>and</strong> the function result is a signed long integer. The comm<strong>and</strong>-line<br />

option -Wconversions can be used to detect unexpected<br />

sign conversions. This function supports the full range of addressing<br />

modes of the instruction.<br />

Prototype: signed long __builtin_mulus(const unsigned int p0,<br />

const signed int p1);<br />

Argument: p0 multiplic<strong>and</strong><br />

p1 multiplier<br />

Return Value: Returns the signed long integer value of the product p0 x p1.<br />

Assembler Operator<br />

/ Machine<br />

Instruction:<br />

mul.us<br />

__builtin_muluu<br />

Description: Computes the product p0 x p1. Function arguments are unsigned integers,<br />

<strong>and</strong> the function result is an unsigned long integer. The comm<strong>and</strong>-line<br />

option -Wconversions can be used to detect unexpected<br />

sign conversions. This function supports the full range of addressing<br />

modes of the instruction, including immediate mode <strong>for</strong> oper<strong>and</strong> p1.<br />

Prototype: unsigned long __builtin_muluu(const unsigned int p0,<br />

const unsigned int p1);<br />

Argument: p0 multiplic<strong>and</strong><br />

p1 multiplier<br />

Return Value: Returns the signed long integer value of the product p0 x p1.<br />

© 2008 <strong>Microchip</strong> Technology Inc. DS51284G-page 155

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!