From: Tony Finch Date: Fri, 01 May 2009 17:42:38 GMT Subject: Re: Why Git is so fast Message-ID: In-Reply-To: <8663gllt88.fsf@broadpark.no> 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 http://dotat.at/ GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS. MODERATE OR GOOD.