avr-libc icon indicating copy to clipboard operation
avr-libc copied to clipboard

[patch #5621] Optimizing a 16-bit * 8-bit -> 24-bit multiplication

Open avrs-admin opened this issue 3 years ago • 0 comments

Thu 07 Dec 2006 05:48:47 PM CET

On 12/1/06, Galen Seitz [email protected] wrote:

Not exactly what you want, but this might help you get started.

galen

extern inline int16_t mult_s16_u8s16(uint8_t a, int16_t b)

...

Thanks for the code snippet, Galen. Using your mult_s16_u8s16 for inspiration, I wrote mul_16_8 (u16 * u8 -> u24). Perhaps these functions should be added to avr-libc.

Cheers, Shaun

file #11470: mul.h

This issue was migrated from https://savannah.nongnu.org/patch/?5621

avrs-admin avatar Jan 31 '22 07:01 avrs-admin