diff options
author | Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> | 2017-07-06 13:52:24 +0200 |
---|---|---|
committer | Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> | 2017-07-10 18:09:42 +0200 |
commit | d24594976686983c7186cbe4e78153888a13b6e4 (patch) | |
tree | 12d3e6bbcf3ec1f1a2436d1ad0aa4fded4a48ce1 /g10/Makefile.am | |
parent | speedo: Provide a vagrantfile to test speedo in an isolated VM. (diff) | |
download | gnupg2-d24594976686983c7186cbe4e78153888a13b6e4.tar.xz gnupg2-d24594976686983c7186cbe4e78153888a13b6e4.zip |
tofu: Compare squares instead of square roots.
* g10/Makefile.am (tofu_source) [USE_TOFU]: Remove sqrtu32.h and
sqrtu32.c.
* g10/sqrtu32.h, g10/sqrtu32.c: Removed files.
* g10/tofu.c: Compare squares instead of square roots.
--
The original code is a factor 11.5 slower than using libm's sqrt(),
which in turn is a factor 3.5 slower than using one multiplication
on the other side of the comparison. Also, it's much simpler now.
Signed-off-by: Marcus Brinkmann <mb@g10code.com>
Diffstat (limited to 'g10/Makefile.am')
-rw-r--r-- | g10/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/Makefile.am b/g10/Makefile.am index d5c92f896..cc4ef5cb6 100644 --- a/g10/Makefile.am +++ b/g10/Makefile.am @@ -77,7 +77,7 @@ trust_source = trustdb.c trustdb.h tdbdump.c tdbio.c tdbio.h endif if USE_TOFU -tofu_source = tofu.h tofu.c gpgsql.c gpgsql.h sqrtu32.c sqrtu32.h +tofu_source = tofu.h tofu.c gpgsql.c gpgsql.h else tofu_source = endif |