This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Endian swapping with C code on ARM
Richard Henderson <rth@redhat.com> writes:
> On Tue, Jul 13, 2004 at 05:39:41PM +0200, Falk Hueffner wrote:
>> I have trouble understanding the point of this frobbing.
>
> Well, for one, QImode is 32 bits on c4x, and SImode is 128 bits.
Okay, I can see that. I was just wondering why for the bit-twiddling
builtins only 64 and 128 bit versions are generated on 64-bit
platforms while it's only possible to get 32 and 64 bit versions from
C (AFAIK, int, long, and long long can only have those widths in gcc).
Wouldn't it make more sense to hardcode 32 and 64 bit functions in
libgcc.c and then determine the correct mode code in libgcc.h?
--
Falk