]> git.ipfire.org Git - thirdparty/git.git/commit - shallow.c
pass constants as first argument to st_mult()
authorRené Scharfe <l.s.r@web.de>
Sat, 30 Jul 2016 18:18:31 +0000 (20:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Aug 2016 21:01:03 +0000 (14:01 -0700)
commit50492f7b38f84619cbfb443efc3c0c78fc0304dd
tree051c7b006815c0c55c8c37039cb9877402b56a1b
parentf8f7adce9fc50a11a764d57815602dcb818d1816
pass constants as first argument to st_mult()

The result of st_mult() is the same no matter the order of its
arguments.  It invokes the macro unsigned_mult_overflows(), which
divides the second parameter by the first one.  Pass constants
first to allow that division to be done already at compile time.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-rename.c
refs.c
shallow.c