Re: [PATCH 1/2] compat: move unaligned helpers to bswap.h
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jan 23, 2014, 19:41 UTC
- Message-ID
- <20140123194118.GT18964@google.com>
- In-Reply-To
- <20140123183522.GA26447@sigill.intra.peff.net>
Jeff King wrote:
Show 8 quoted lines
> Commit d60c49c (read-cache.c: allow unaligned mapping of the > index file, 2012-04-03) introduced helpers to access > unaligned data. Let's factor them out to make them more > widely available. > > While we're at it, we'll give the helpers more readable > names, add a helper for the "ntohll" form, and add the > appropriate Makefile knob.
Weird. Why wasn't git broken on the relevant platforms before (given that no one has been setting NEEDS_ALIGNED_ACCESS for them)?
Puzzled, Jonathan