Displaying 3 results from an estimated 3 matches for "compile_time_endia".
2007 May 02
4
[patch] Mac Universal Binaries
Hi all,
Speex currently decides endianness at configure-time. This causes the
ppc half of Mac universal binaries to have some endianness problems.
Most notably, the header built by speex_packet_to_header() has
incorrect byte-ordering.
This Apple developer page describes the incantation that can be used
to build universal binaries on Mac. It also highlights the
configure-time versus compile-time
2007 May 03
0
[patch] Mac Universal Binaries
...has
strange requirements.
> The extra thing we could do is set a preprocessor variable at
> configure-time that we could use at compile-time to determine whether
> the endianess was resolved at configure-time or should be resolved at
> compile-time. For example:
>
> #if defined(COMPILE_TIME_ENDIANESS) && defined(__BIG_ENDIAN__) ||
> !defined(COMPILE_TIME_ENDIANESS) && defined(WORDS_BIGENDIAN)
> /* do big endian thing */
> #else
> /* do little endian thing */
> #endif
>
> This seems excessively complicated, so I preferred not to do it.
Actually, all we...
2007 May 03
4
[patch] Mac Universal Binaries
...ll relevant unix-like platforms. Even icc supports
this.
The extra thing we could do is set a preprocessor variable at
configure-time that we could use at compile-time to determine whether
the endianess was resolved at configure-time or should be resolved at
compile-time. For example:
#if defined(COMPILE_TIME_ENDIANESS) && defined(__BIG_ENDIAN__) ||
!defined(COMPILE_TIME_ENDIANESS) && defined(WORDS_BIGENDIAN)
/* do big endian thing */
#else
/* do little endian thing */
#endif
This seems excessively complicated, so I preferred not to do it.
Can others comment on the availability of the compil...