This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Optimize manual byte swap implementations v3


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-


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]