On Mon, 2014-02-24 at 11:36 +0100, Egbert Eich wrote: > From: Dinar Valeev <[email protected]> > > So far PPC was big endian for sure. For ppc64le this is no longer > true.
What happened to this ? It never made it upstream... Cheers, Ben. > Signed-off-by: Egbert Eich <[email protected]> > --- > include/servermd.h | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/include/servermd.h b/include/servermd.h > index 11f6c10..256d84b 100644 > --- a/include/servermd.h > +++ b/include/servermd.h > @@ -114,8 +114,13 @@ SOFTWARE. > > #if defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) > > -#define IMAGE_BYTE_ORDER MSBFirst > -#define BITMAP_BIT_ORDER MSBFirst > +#if defined(__LITTLE_ENDIAN__) > +#define IMAGE_BYTE_ORDER LSBFirst > +#define BITMAP_BIT_ORDER LSBFirst > +#else > +#define IMAGE_BYTE_ORDER MSBFirst > +#define BITMAP_BIT_ORDER MSBFirst > +#endif > #define GLYPHPADBYTES 4 > > #endif /* PowerPC */ _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
