aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmark/benchmark.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 02:56:03 +0000
committerlloyd <[email protected]>2010-10-13 02:56:03 +0000
commit3697dcff8b5e9765b41114281ce10e7ed3d3abb4 (patch)
tree670853a74b0fe173e7e9fce9cd3e6eda7a03d2c7 /src/benchmark/benchmark.cpp
parent63121e1e169616f724bf79b8aac1a2b4423c8904 (diff)
s/BLOCK_SIZE/block_size()/
Diffstat (limited to 'src/benchmark/benchmark.cpp')
-rw-r--r--src/benchmark/benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmark/benchmark.cpp b/src/benchmark/benchmark.cpp
index 46dcfb58c..837d66c05 100644
--- a/src/benchmark/benchmark.cpp
+++ b/src/benchmark/benchmark.cpp
@@ -48,7 +48,7 @@ bench_block_cipher(BlockCipher* block_cipher,
u64bit nanoseconds_max,
byte buf[], size_t buf_len)
{
- const size_t in_blocks = buf_len / block_cipher->BLOCK_SIZE;
+ const size_t in_blocks = buf_len / block_cipher->block_size();
u64bit reps = 0;
u64bit nanoseconds_used = 0;
@@ -64,7 +64,7 @@ bench_block_cipher(BlockCipher* block_cipher,
++reps;
}
- return std::make_pair(reps * in_blocks * block_cipher->BLOCK_SIZE,
+ return std::make_pair(reps * in_blocks * block_cipher->block_size(),
nanoseconds_used);
}