28.2.93 __builtin_mulss
Architecture
dsPIC33C/E/F, dsPIC30
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 int16_t a asm("A");
int32_t result;
const int16_t p0, p1;
const uint16_t p2, p3;
result = __builtin_mulss(p0,p1);
a = __builtin_mulss(p0,p1);
Prototype
int32_t __builtin_mulss(const int16_t p0, const int16_t p1);
Arguments
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.
Machine Instruction
mul.ss