Double conversion in case of LE host
mlukoshkov opened this issue · comments
mlukoshkov commented
inline uint16_t host_to_le16(uint16_t hostu16)
{
return swap16(htons(hostu16));
}
Vitaly Sinilin commented
It was implemented like this intentionally because in this particular project nobody on the Earth could see the performance gain of such an optimization, but at the same time it would result in more complicated source code or build procedure.
Vitaly Sinilin commented
Nevertheless, after cc65e2e there is nothing to discuss anymore :)