Am 19.05.20 um 17:48 schrieb Basil Hussain:
> Hi all,
>
> I found today some very odd STM8 assembly code generated by SDCC. I
> can't figure out what it was trying to do, or why.
>
> The C code is really simple:
>
> uint8_t ffs_16(uint16_t value) {
> return (value ? ctz_16(value) + 1 : 0);
> }
>
> But I get this bizarre assembly code:
>
> […]
Could you show a declaration of ctz_16?
Philipp
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user