From: jsing Date: Sat, 7 Jan 2023 14:30:57 +0000 (+0000) Subject: Fix previous. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e204e7afd684e73de628eda4e7de5134825f6b6a;p=openbsd Fix previous. --- diff --git a/regress/lib/libcrypto/bn/bn_shift.c b/regress/lib/libcrypto/bn/bn_shift.c index 2335ae62128..15359db083b 100644 --- a/regress/lib/libcrypto/bn/bn_shift.c +++ b/regress/lib/libcrypto/bn/bn_shift.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_shift.c,v 1.6 2023/01/05 04:44:20 jsing Exp $ */ +/* $OpenBSD: bn_shift.c,v 1.7 2023/01/07 14:30:57 jsing Exp $ */ /* * Copyright (c) 2022 Joel Sing * @@ -467,6 +467,12 @@ benchmark_bn_rshift_1(BIGNUM *bn) benchmark_bn_rshift(bn, 1); } +static void +benchmark_bn_rshift_16(BIGNUM *bn) +{ + benchmark_bn_rshift(bn, 16); +} + static void benchmark_bn_rshift_32(BIGNUM *bn) { @@ -545,10 +551,10 @@ struct benchmark benchmarks[] = { }, { .desc = "BN_rshift(_, _, 16)", - .func = benchmark_bn_rshift_32, + .func = benchmark_bn_rshift_16, }, { - .desc = "BN_rshift(_, _, 16)", + .desc = "BN_rshift(_, _, 32)", .func = benchmark_bn_rshift_32, }, {