bug in xfont xlfd rounding code

Eirik Byrkjeflot Anonsen eirik at opera.com
Wed Jan 28 07:17:21 PST 2009


Dave Airlie <airlied at gmail.com> writes:

> Hi guys,
>
> Maybe someone understand wtf the code in
> libXfont/util/fontxlfd.c:xlfd_round_double
> is all about, but the results were different on different endian
> machines due to the code
> being hardcoded for little endian.

Which is to say "x86 layout".

> I reimplemented it for other endian, however I'm unsure about the
> endian detect code on other OSes,
> it just uses the autoconf macros.

I'm not convinced that floating point layout is a plain big/little
endianness that follows the integer endianness.  But it's been some
time since I had to worry about that...

eirik



More information about the xorg mailing list