Little Endian to Big Endian

BOAS at de.ibm.com BOAS at de.ibm.com
Sun Feb 11 12:25:11 EST 2001


Naushit,

>I am in need to write most efficint little endian
>to big endian conversion function.
>I know it can be done best in assembly with one instruction.
>can somebody tell me what instruction will do that?

Maybe you want to got to linux/inlcude/asm-ppc/byteorder.h
in the kernel source and take a loot at the __arch__swab

Boas Betzler, IBM Linux Technology Center
embedded Linux


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/






More information about the Linuxppc-embedded mailing list