Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Choose XDL_FAST_HASH code on sizeof(long) instead of __WORDSIZE

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:42

Thomas Rast [off-list ref] writes:
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:
Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help