Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

© 2005-2011 Microchip Technology Inc. DS70157F-page 469
Section 6. Built-in Functions
Built-in Functions
6
__builtin_mulus
Description:
Computes the product p0 x p1. Function arguments are integers with mixed signs, and the
function result is a signed long integer. The command-line option -Wconversions can be
used to detect unexpected sign conversions. This function supports the full range of addressing
modes of the instruction.
Prototype:
signed long _ _builtin_mulus(const unsigned int p0, const signed int p1);
Argument:
p0 multiplicand
p1 multiplier
Return Value:
Returns the signed long integer value of the product p0 x p1.
Assembler Operator / Machine Instruction:
mul.us
__builtin_muluu
Description:
Computes the product p0 x p1. Function arguments are unsigned integers, and the function
result is an unsigned long integer. The command-line option -Wconversions can be used to
detect unexpected sign conversions. This function supports the full range of addressing modes
of the instruction, including immediate mode for operand p1.
Prototype:
unsigned long __builtin_muluu(const unsigned int p0, const unsigned int p1);
Argument:
p0 multiplicand
p1 multiplier
Return Value:
Returns the signed long integer value of the product p0 x p1.
Assembler Operator / Machine Instruction:
mul.uu

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh