[cairo] Speeding up _cairo_fixed_from_double
Bill Spitzak
spitzak at d2.com
Thu Oct 26 18:33:25 PDT 2006
Michael Sweet wrote:
> #ifdef __APPLE__
> # ifdef __i386__
> # define LITTLE_ENDIAN
> # undef BIG_ENDIAN
> # else
> # undef LITTLE_ENDIAN
> # define BIG_ENDIAN
> # endif /* __i386__ */
> #endif /* __APPLE__ */
I just checked our code, and it appears OS/X compilers define
__BIG_ENDIAN__. Our code appears to assumme that if that is defined it
is big-endian, and does approximately this:
#if defined(__BIG_ENDIAN__) || defined(__sgi) || .. others here
# define BIG_ENDIAN 1
#else
# define BIG_ENDIAN 0
#endif
More information about the cairo
mailing list