This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Optimize manual byte swap implementations using the GCC bswap builtin
Andreas Krebbel wrote:
>> Some implementation of htons use inline-asm directly so it cannot be
>> optimized in a same way to the builtin.
> Sure, that applies to i386, x86_86, ia64 and s390. But why should we
> care about the already optimized versions? The optimization of course
> only helps the still handcrafted implementations.
Sure. I just want to make sure that whatever optimization you've done
actually hits the places where it's important.