]> git.ipfire.org Git - thirdparty/tor.git/commit
csiphash: don't attempt unaligned access
authorNick Mathewson <nickm@torproject.org>
Tue, 18 Mar 2014 14:43:46 +0000 (10:43 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 18 Mar 2014 14:43:46 +0000 (10:43 -0400)
commitaaa33f144c4ad0db0c067df2f6703790be400acb
tree1b8f954a3c35d47911fc6ffd4549d0d698eb816b
parent204f7255f4c06fe12d99e785b91ea2fb18047018
csiphash: don't attempt unaligned access

In digestmap_set/get benchmarks, doing unaligned access on x86
doesn't save more than a percent or so in the fast case.  In the
slow case (where we cross a cache line), it could be pretty
expensive.  It also makes ubsan unhappy.
src/ext/csiphash.c