avr-libc
avr-libc copied to clipboard
[patch #5621] Optimizing a 16-bit * 8-bit -> 24-bit multiplication
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
This issue was migrated from https://savannah.nongnu.org/patch/?5621