[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Big and little endian issue



>Maybe we should start some parallel contests for the
>shortest BE/LE swapping routines for the most used CPU's
>and get the "problem" out of this world that way?


x86 assembler ever since the 486:

        mov <32bit reg>, <data>
        BSWAP <32bit reg>

nuff said?  1 clock on 486 and pentii

I believe a lot of risc type processors have the equivalent operation.

-jrp