1
0
mirror of https://github.com/git/git.git synced 2024-09-28 19:42:15 +02:00
git/block-sha1
Linus Torvalds 5d5210c35a block-sha1: get rid of redundant 'lenW' context
.. and simplify the ctx->size logic.

We now count the size in bytes, which means that 'lenW' was always just
the low 6 bits of the total size, so we don't carry it around separately
any more.  And we do the 'size in bits' shift at the end.

Suggested by Nicolas Pitre and linux@horizon.com.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-08-06 13:56:45 -07:00
..
sha1.c block-sha1: get rid of redundant 'lenW' context 2009-08-06 13:56:45 -07:00
sha1.h block-sha1: get rid of redundant 'lenW' context 2009-08-06 13:56:45 -07:00