aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-02-20 21:13:16 +0000
committerlloyd <[email protected]>2012-02-20 21:13:16 +0000
commitc00027b8114f49d7855d1a79b99048297dc50e34 (patch)
tree347613c9b9ecc5e53f674ea36ad55777e132290c /doc/examples
parent49f333282279cc22fa8af7423447973b9dcfeee9 (diff)
parente5a1b8c4392b5383af133591cb9238fb8c1b4516 (diff)
propagate from branch 'net.randombit.botan' (head c247a55e7c0bcd239fcfc672139b59ef63d7ee84)
to branch 'net.randombit.botan.cxx11' (head 16d7756c6b8933d0d543ebdda9c7e8f4908a4a33)
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/bench.cpp2
-rw-r--r--doc/examples/benchmark.cpp2
-rw-r--r--doc/examples/hash_quickly.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/bench.cpp b/doc/examples/bench.cpp
index 87b3a57f7..9a275523c 100644
--- a/doc/examples/bench.cpp
+++ b/doc/examples/bench.cpp
@@ -75,7 +75,7 @@ void benchmark_algo(const std::string& algo,
Algorithm_Factory& af = global_state().algorithm_factory();
std::map<std::string, double> speeds =
- algorithm_benchmark(algo, af, rng, milliseconds, 16*1024);
+ algorithm_benchmark(algo, af, rng, milliseconds, 16);
std::cout << algo << ":";
diff --git a/doc/examples/benchmark.cpp b/doc/examples/benchmark.cpp
index 7ad1775e2..b5adb3d4f 100644
--- a/doc/examples/benchmark.cpp
+++ b/doc/examples/benchmark.cpp
@@ -33,7 +33,7 @@ int main(int argc, char* argv[])
std::string algo = argv[i];
std::map<std::string, double> results =
- algorithm_benchmark(algo, af, rng, ms, 16*1024);
+ algorithm_benchmark(algo, af, rng, ms, 16);
std::cout << algo << ":\n";
for(std::map<std::string, double>::iterator r = results.begin();
diff --git a/doc/examples/hash_quickly.cpp b/doc/examples/hash_quickly.cpp
index 005a6d719..a18ab4fa6 100644
--- a/doc/examples/hash_quickly.cpp
+++ b/doc/examples/hash_quickly.cpp
@@ -34,7 +34,7 @@ void set_fastest_implementation(const std::string& algo,
Botan::Algorithm_Factory& af = Botan::global_state().algorithm_factory();
std::map<std::string, double> results =
- Botan::algorithm_benchmark(algo, af, rng, ms, 16*1024);
+ Botan::algorithm_benchmark(algo, af, rng, ms, 16);
std::string fastest_provider = "";
double best_res = 0;