Re: [PATCH] Choose XDL_FAST_HASH code on sizeof(long) instead of __WORDSIZE
Thomas Rast <trast@student.ethz.ch> writes:
Show 9 quoted lines
> Darwin does not define __WORDSIZE, and compiles the 32-bit code path
> on 64-bit systems, resulting in a totally broken git.
>
> I could not find an alternative -- other than the platform symbols
> (__x86_64__ etc.) -- that does the test in the preprocessor. However,
> we can also just test for the size of a 'long', which is what really
> matters here. Any compiler worth its salt will leave only the branch
> relevant for its platform, and indeed on Linux/GCC the numbers don't
> change: