aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-09-20 17:07:45 +0000
committerNick Mathewson <nickm@torproject.org>2007-09-20 17:07:45 +0000
commit262d5ab0a8172ac0cd67adedd210179d59aa2932 (patch)
treea1df1878e52b424d6d4ff70bcf675d132622c55f /configure.in
parent088c4cd8ce83617b11fdbbbb02dcf9a23dcc6581 (diff)
downloadtor-262d5ab0a8172ac0cd67adedd210179d59aa2932.tar.gz
tor-262d5ab0a8172ac0cd67adedd210179d59aa2932.zip
r15210@catbus: nickm | 2007-09-20 13:04:05 -0400
Re-optimize counter-mode: save about 15% on my core2 by (1) not regenerating the entire counter buffer every time we encrypt a block of keystream (2) using the platform-optimized htonl to convert to big-endian (It's a single instruction on 486 and later ) and (3) not even keeping a separate "counter" and "buffer" when the platform is big-endian. The third still needs testing. svn:r11536
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index bf2458f891..44ca2d81cb 100644
--- a/configure.in
+++ b/configure.in
@@ -143,6 +143,8 @@ if test $bmipspro = true; then
CFLAGS="$CFLAGS -c99"
fi
+AC_C_BIGENDIAN
+
AC_SEARCH_LIBS(socket, [socket])
AC_SEARCH_LIBS(gethostbyname, [nsl])
AC_SEARCH_LIBS(dlopen, [dl])