Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cr-marcstevens/sha1collisiondetection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2017-05-19 10:51:07 +0300
committerMarc Stevens <cr-marcstevens@users.noreply.github.com>2017-05-20 13:49:39 +0300
commitb0d20a0ee571ddcd24cd65435a6ee14ce877f4c2 (patch)
tree945317ae6030b25243e8983ad386c6952a7db05d
parentca94024de3b8b1bfc73ffac004a8b14ebaf7bc7e (diff)
README: Document the macros you can set to override CPU detection
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0785397..971f918 100644
--- a/README.md
+++ b/README.md
@@ -124,3 +124,22 @@ modifying the code yourself.
- SHA1DC_CUSTOM_TRAILING_INCLUDE_UBC_CHECK_H
Includes a custom trailer in ubc_check.H.
+
+This code will try to auto-detect certain things based on
+CPU/platform. Unless you're running on some really obscure CPU or
+porting to a new platform you should not need to tweak this. If you do
+please open an issue at
+https://github.com/cr-marcstevens/sha1collisiondetection
+
+- SHA1DC_FORCE_LITTLEENDIAN / SHA1DC_FORCE_BIGENDIAN
+
+ Override the check for processor endianenss and force either
+ Little-Endian or Big-Endian.
+
+- SHA1DC_FORCE_UNALIGNED_ACCESS
+
+ Permit unaligned access. This will fail on e.g. SPARC processors, so
+ it's only permitted on a whitelist of processors. If your CPU isn't
+ detected as allowing this, and allows unaligned access, setting this
+ may improve performance (or make it worse, if the kernel has to
+ catch and emulate such access on its own).