mongodb/mongo — pull request #202 by janimo (2012-04-05 18:03:13+00:00)
Title: Fix alignment traps on ARMv7

Access doubles via a packed struct so the generated code works with
unaligned pointers too. The code generated by gcc for i386 and amd64
for such an access is identical to the code generated by a direct
reference.

I tried making the patch as clean as possible but some of the expressions got quite elaborate here. So you can take it as an RFC for fixing the last bits of ARM support :)