[PATCH] Optimize manual byte swap implementations v3
Andreas Krebbel
krebbel@linux.vnet.ibm.com
Tue Apr 28 10:10:00 GMT 2009
Hi Chris,
> Can't code like this just use __builtin_bswap_x? Presumably this
> expands to decent code when the target cpu doesn't support a bswap
> instruction.
One of the problems is that __builtin_bswap is relatively new. I think
it has been added with 4.3. So you again would need lovely GCC version
checks around it.
Bye,
-Andreas-
More information about the Gcc-patches
mailing list