]> source.dussan.org Git - jgit.git/commit
Micro-optimize copy instructions in DeltaEncoder 03/11803/1
authorShawn Pearce <sop@google.com>
Thu, 11 Apr 2013 08:11:11 +0000 (01:11 -0700)
committerShawn Pearce <sop@google.com>
Thu, 11 Apr 2013 08:17:35 +0000 (01:17 -0700)
commit0f32901ab7da9f0eaf1c716d66ce8d58bc70f101
tree16683e084a2def2f816cf17cbaccea7325802cca
parent1db50c9d91adaadc019938eaaa7e91e3963fb681
Micro-optimize copy instructions in DeltaEncoder

The copy instruction formatter should not to compute the shifts and
masks twice.  Instead compute them once and assume there is a register
available to store the temporary "b" for compare with 0.

Change-Id: Ic7826f29dca67b16903d8f790bdf785eb478c10d
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaEncoder.java