projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SEC: fix a useless call in benchmarks.
[bertos.git]
/
bertos
/
sec
/
benchmarks.c
diff --git
a/bertos/sec/benchmarks.c
b/bertos/sec/benchmarks.c
index afe727517b39280acbdcc16ff38e3f6cca1bfd51..727697d3fba1ec9bb6afc09f5abd93842ee1fddf 100644
(file)
--- a/
bertos/sec/benchmarks.c
+++ b/
bertos/sec/benchmarks.c
@@
-35,7
+35,8
@@
void prng_benchmark(PRNG *prng, const char *hname, int numbytes)
for (int j=0;j<2048;++j) {
for (int i=0; i<(numbytes+511)/512-1; ++i)
prng_generate(prng, buf, 512);
- prng_generate(prng, buf, numbytes%512);
+ if (numbytes % 512)
+ prng_generate(prng, buf, numbytes%512);
}
t = timer_clock() - t;