From eb13267f82e848d9a9b38a2791e5c7008bf8d157 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 Apr 2016 00:39:31 +0200 Subject: zstr: add new parameter, n: the known limit out the length of the output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- bench/benchmark.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bench/benchmark.c') diff --git a/bench/benchmark.c b/bench/benchmark.c index 27efee1..2c3f464 100644 --- a/bench/benchmark.c +++ b/bench/benchmark.c @@ -117,7 +117,8 @@ main(int argc, char *argv[]) BENCHMARK(zmodpowu(c, a, 12, b), 0); BENCHMARK(zsets(c, "5495468234592964023447280368442884381000481887"), 0); BENCHMARK(zstr_length(a, 10), 0); - BENCHMARK(zstr(a, buf), 0); + BENCHMARK(zstr(a, buf, 0), 0); + BENCHMARK(zstr(a, buf, sizeof(buf) - 1), 0); BENCHMARK(zrand(c, DEFAULT_RANDOM, QUASIUNIFORM, a), 0); BENCHMARK(zrand(c, DEFAULT_RANDOM, UNIFORM, a), 0); BENCHMARK(zptest(d, a, 5), 0); -- cgit v1.2.3-70-g09d2