# Vault 7: Projects

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

### Protego

# MPLAB XC16 C-Compiler

- 1
- 2
…
- 315
- 316
- 317
- 318
- 319
…
- 365
- 366

Built-in Functions
 2012-2013 Microchip Technology Inc. DS50002071C-page 317
__builtin_mulss
Description: Computes the product p0 x p1. Function arguments are signed integers, and the function
result is a signed long integer. The command-line option -Wconversions can be used to
detect unexpected sign conversions.
For example:
volatile register int a asm("A");
signed long result;
const signed int p0, p1;
const unsigned int p2, p3;
result = __builtin_mulss(p0,p1);
a = __builtin_mulss(p0,p1);
Prototype: signed long __builtin_mulss(const signed 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. The value can either be
returned into a variable of type signed long or directly into an accumulator register.
Assembler Operator/
Machine Instruction:
mul.ss
__
builtin_mulsu
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, including immediate mode for operand p1.
For example:
volatile register int a asm("A");
signed long result;
const signed int p0, p1;
const unsigned int p2, p3;
result = __builtin_mulsu(p0,p2);
a = __builtin_mulsu(p0,p2);
Prototype: signed long __builtin_mulsu(const signed 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. The value can either be
returned into a variable of type signed long or directly into an accumulator register.
Assembler Operator/
Machine Instruction:
mul.su

- 1
- 2
…
- 315
- 316
- 317
- 318
- 319
…
- 365
- 366