Coverage Report

Created: 2023-06-07 06:44

/src/dropbear/libtommath/bn_mp_exch.c
Line
Count
Source
1
#include "tommath_private.h"
2
#ifdef BN_MP_EXCH_C
3
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4
/* SPDX-License-Identifier: Unlicense */
5
6
/* swap the elements of two integers, for cases where you can't simply swap the
7
 * mp_int pointers around
8
 */
9
void mp_exch(mp_int *a, mp_int *b)
10
183k
{
11
183k
   mp_int  t;
12
13
183k
   t  = *a;
14
183k
   *a = *b;
15
183k
   *b = t;
16
183k
}
17
#endif