Allow for defining SHA1DC_FORCE_UNALIGNED_ACCESS externally
commitca94024de3b8b1bfc73ffac004a8b14ebaf7bc7e
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 18 May 2017 21:38:43 +0000 (18 21:38 +0000)
committerMarc Stevens <cr-marcstevens@users.noreply.github.com>
Sat, 20 May 2017 10:49:39 +0000 (20 12:49 +0200)
tree09045cd6b06fa0b2acb5f47e1de237d9ffa74539
parent394e2f0f3ff51da9d7b6f3a6305006daadc85e6c
Allow for defining SHA1DC_FORCE_UNALIGNED_ACCESS externally

This allows for doing -DSHA1DC_FORCE_UNALIGNED_ACCESS on a
platform/CPU that's not listed here, since the default is to fall back
to aligned access unless except on a whitelist of CPUs.

It would be nice e.g. for the git project if someone running on such a
platform didn't have to monkeypatch the code, instead they can just
provide a -DSHA1DC_FORCE_UNALIGNED_ACCESS argument
lib/sha1.c