ppc LE questions (seeking help hand info pointers)

Holger Bettag hobold at Informatik.Uni-Bremen.DE
Sun Sep 23 00:23:44 EST 2001


"Albert D. Cahalan" <acahalan at cs.uml.edu> writes:

[...]
> Now do an unconditional 64-bit byte swap on the motherboard.
> Consider an array of four __u16 values affected by this.
> They get converted from big-endian to little-endian, and they
> get moved to different addresses. Excellent! All the weirdness
> just cancels out, giving perfect little-endian. This works for
> 8-bit, 16-bit, 32-bit, and 64-bit data. Life is good.
>
Does it work for 128 bit data? The 74x0's most promiment feature,
AltiVec, would expose a strange mixed endianness to programmers
otherwise.

  Holger


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





More information about the Linuxppc-dev mailing list