diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2012-05-22 22:36:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-23 09:10:17 -0700 |
commit | 8072766cc6756e9218ea7c9433b097b696329407 (patch) | |
tree | 03da9315a3f6759bdd7df50163bc765013aca190 /Documentation/git-http-backend.txt | |
parent | xdiff: avoid more compiler warnings with XDL_FAST_HASH on 32-bit machines (diff) | |
download | tgif-8072766cc6756e9218ea7c9433b097b696329407.tar.xz |
xdiff: import new 32-bit version of count_masked_bytes()
Import the latest 32-bit implementation of count_masked_bytes() from
Linux (arch/x86/include/asm/word-at-a-time.h). It's shorter and avoids
overflows and negative numbers.
This fixes test failures on 32-bit, where negative partial results had
been shifted right using the "wrong" method (logical shift right instead
of arithmetic short right). The compiler is free to chose the method,
so it was only wrong in the sense that it didn't work as intended by us.
Reported-by: Øyvind A. Holm <sunny@sunbase.org>
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-http-backend.txt')
0 files changed, 0 insertions, 0 deletions