aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-21 23:58:25 +0000
committerlloyd <[email protected]>2008-11-21 23:58:25 +0000
commit5d5b7f539faac9c15ad9f638d6c3b9c56d3166e5 (patch)
tree0824ce4a56c6acbf0a2facc8c6f07666d09e0c04 /src
parentb4dab19af8894d8a79ecc3dffeed5ca39f740b5a (diff)
Fix poorly named function
Diffstat (limited to 'src')
-rw-r--r--src/benchmark/benchmark.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/benchmark/benchmark.cpp b/src/benchmark/benchmark.cpp
index 7e5eae048..0c6dcdfe9 100644
--- a/src/benchmark/benchmark.cpp
+++ b/src/benchmark/benchmark.cpp
@@ -19,10 +19,10 @@ namespace {
/**
* Benchmark BufferedComputation (hash or MAC)
*/
-std::pair<u32bit, u64bit> bench_buf_es(BufferedComputation* buf_comp,
- Timer& timer,
- u64bit nanoseconds_max,
- const byte buf[], u32bit buf_len)
+std::pair<u32bit, u64bit> bench_buf_comp(BufferedComputation* buf_comp,
+ Timer& timer,
+ u64bit nanoseconds_max,
+ const byte buf[], u32bit buf_len)
{
const u64bit start = timer.clock();
u64bit nanoseconds_used = 0;
@@ -96,7 +96,7 @@ bench_hash(HashFunction* hash, Timer& timer,
u64bit nanoseconds_max,
const byte buf[], u32bit buf_len)
{
- return bench_buf_es(hash, timer, nanoseconds_max, buf, buf_len);
+ return bench_buf_comp(hash, timer, nanoseconds_max, buf, buf_len);
}
/**
@@ -109,7 +109,7 @@ bench_mac(MessageAuthenticationCode* mac,
const byte buf[], u32bit buf_len)
{
mac->set_key(buf, mac->MAXIMUM_KEYLENGTH);
- return bench_buf_es(mac, timer, nanoseconds_max, buf, buf_len);
+ return bench_buf_comp(mac, timer, nanoseconds_max, buf, buf_len);
}
}