8.9.5 builtin_avr_fmuls Built-in Function
Inserts a fmuls
fractional multiplication instruction sequence.
Prototype
int __builtin_avr_fmuls(char x
, char y
)
Remarks
The built-in will produce code that loads the operands to appropriate registers, performs
the fractional signed multiplication of x
and
y
, and stores the result.
Example
#include <stdint.h>
int main(void) {
int16_t result;
int8_t a, b;
a = 128;
b = 3;
result = __builtin_avr_fmuls(a, b); // result will be assigned -768
}