This is the mail archive of the gcc@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: Endian swapping with C code on ARM


Robert Dewar wrote:

> Wouldn't it be a good idea to have a built-in for endian
> swapping. Many architectures have specialized instructions
> or effective sequences for this common operation.

Agreed. A builtin and some magic to recognize common shift/or sequences to do
that manually, so that it can optimized to the builtin.
-- 
Giovanni Bajo




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