diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-02-15 13:54:49 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-02-15 14:16:21 +0000 |
commit | 805a313df05d2f347af321511527e06ea3cae92c (patch) | |
tree | 7e06fbd1c2d5ababf3d219ddb6c4b0cf9525aea9 /searchlib/src/tests/alignment | |
parent | c0b8734987176a93588909739af143c6b0a1a6ff (diff) |
use size literals in searchlib
Diffstat (limited to 'searchlib/src/tests/alignment')
-rw-r--r-- | searchlib/src/tests/alignment/alignment.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searchlib/src/tests/alignment/alignment.cpp b/searchlib/src/tests/alignment/alignment.cpp index bc903cabde5..62d19839b41 100644 --- a/searchlib/src/tests/alignment/alignment.cpp +++ b/searchlib/src/tests/alignment/alignment.cpp @@ -5,6 +5,7 @@ LOG_SETUP("alignment_test"); #include <sys/resource.h> #include <sys/time.h> #include <vespa/vespalib/testkit/testapp.h> +#include <vespa/vespalib/util/size_literals.h> struct Timer { rusage usage; @@ -30,7 +31,7 @@ timeAccess(void *bufp, uint32_t len, double &sum) double *buf = (double *)bufp; Timer timer; timer.start(); - for(uint32_t i = 0; i < 512 * 1024; ++i) { + for(uint32_t i = 0; i < 512_Ki; ++i) { for (uint32_t j = 0; j < len; ++j) { sum += buf[j]; } |