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