[PATCH v2] Replace memcpy with hashcpy when dealing hash copy globally

2014-03-02 Thread Sun He
Replacing memcpy with hashcpy is more directly and elegant. Leave ppc/sha1.c alone, as it is an isolated component. Pull cache.h(actually ../cache.h) in just for one memcpy there is not proper. Helped-by: Michael Haggerty mhag...@alum.mit.edu Helped-by: Duy Nguyen pclo...@gmail.com

Re: [PATCH v2] Replace memcpy with hashcpy when dealing hash copy globally

2014-03-02 Thread Eric Sunshine
On Sun, Mar 2, 2014 at 4:37 AM, Sun He sunheeh...@gmail.com wrote: Replacing memcpy with hashcpy is more directly and elegant. A better explanation is that the change takes advantage of the abstraction provided by hashcpy() rather than hardcoding knowledge about a particular hash