* Fwd: Swap32 built in function
@ 2010-03-31 13:47 simeon
2010-03-31 14:51 ` Paolo Carlini
0 siblings, 1 reply; 2+ messages in thread
From: simeon @ 2010-03-31 13:47 UTC (permalink / raw)
To: gcc
Hi,
I would like to add swap32 built in function to gcc. I looked how other
built in functions are implemented, but I didn't managed.
Can someone give me some idea what to do?
Aleksandar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fwd: Swap32 built in function
2010-03-31 13:47 Fwd: Swap32 built in function simeon
@ 2010-03-31 14:51 ` Paolo Carlini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Carlini @ 2010-03-31 14:51 UTC (permalink / raw)
To: simeon; +Cc: gcc
On 03/31/2010 03:21 PM, simeon wrote:
> Can someone give me some idea what to do?
>
If you mean something like __builtin_bswap32, just use it ;)
http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html#Other-Builtins
If you mean something else... explain in better detail.
Paolo.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-31 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-31 13:47 Fwd: Swap32 built in function simeon
2010-03-31 14:51 ` Paolo Carlini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).