From 75f32d61c6a78e4e63cfadd084730f20b5896493 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 21 Dec 2009 13:51:05 +0000 Subject: Un-internal loadstor.h (and its header deps, rotate.h and bswap.h); too many external apps rely on loadstor.h existing. Define 64-bit generic bswap in terms of 32-bit bswap, since it's not much slower if 32-bit is also generic, and much faster if it's not. This may be quite helpful on 32-bit x86 in particular. Change formulation of generic 32-bit bswap. It may be faster or slower depending on the CPU, especially the latency and throuput of rotate instructions, but should be faster on an ideally superscalar processor with rotate instructions (ie, what I expect future CPUs to look more like). --- src/block/gost_28147/gost_28147.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/block/gost_28147/gost_28147.cpp') diff --git a/src/block/gost_28147/gost_28147.cpp b/src/block/gost_28147/gost_28147.cpp index 8340b8ccc..2dfce0473 100644 --- a/src/block/gost_28147/gost_28147.cpp +++ b/src/block/gost_28147/gost_28147.cpp @@ -6,7 +6,8 @@ */ #include -#include +#include +#include namespace Botan { -- cgit v1.2.3