This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[RFC] Implement __builtin_bswap* for ARMv6
- From: Alexandre Pereira Nunes <alexandre dot nunes at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 07 Apr 2008 13:21:53 -0300
- Subject: [RFC] Implement __builtin_bswap* for ARMv6
Hi,
It seems to me that as of ARMv6, the arm family supports the REV*
instructions, in order to endian swap 32 and 16 bit values.
Would it be complicated to implement e.g. __builtin_bswap32 on armv6
with inline semantics (I mean, without generating a library call)?
Thanks,
Alexandre