git/xdiff
René Scharfe 8072766cc6 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>
2012-05-23 09:10:17 -07:00
..
xdiff.h diff: add option to show whole functions as context 2011-10-10 12:05:07 -07:00
xdiffi.c
xdiffi.h
xemit.c Merge branch 'rs/diff-postimage-in-context' 2012-01-29 13:18:55 -08:00
xemit.h
xhistogram.c
xinclude.h
xmacros.h
xmerge.c
xpatience.c
xprepare.c Merge branch 'rs/diff-cleanup-records-fix' 2011-10-13 19:03:22 -07:00
xprepare.h
xtypes.h
xutils.c xdiff: import new 32-bit version of count_masked_bytes() 2012-05-23 09:10:17 -07:00
xutils.h