Thread (39 messages) flat view 39 messages, 20 authors, 2016-06-15

Re: Why Git is so fast

From: Tony Finch <dot@dotat.at>
Date: 2016-06-15 22:46:41

On Thu, 30 Apr 2009, Kjetil Barvik wrote:
  I admit that I am not particular familar with intel machine
  instructions, but I guess that the above 10 mov instructions is the
  result for the compiled inline hashcpy() in the write_sha1_file()
  function in sha1_file.c

  Question: would it be possible for the compiler to compile it down to
  just 5 mov instructions if we had used unsigned 32 bits type?
No, because the x86 can't do direct memory-to-memory moves.

Tony.
-- 
f.anthony.n.finch  [off-list ref]  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help