Thread (6 messages) flat view 6 messages, 3 authors, 2011-08-11

Re: [RFC] Optimize __arch_swab32 and __arch_swab16

From: Andreas Schwab <hidden>
Date: 2011-08-11 08:45:46

Joakim Tjernlund [off-list ref] writes:
unsigned short my__arch_swab16(unsigned short value)
{
	__asm__("rlwimi %0,%0,16,0x00ff0000"
		: "+r" (value));
You are creating a value that does not fit in a short.

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help