Coverage Report

Created: 2023-09-25 06:11

/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
260k
{
11
260k
   mp_int  t;
12
13
260k
   t  = *a;
14
260k
   *a = *b;
15
260k
   *b = t;
16
260k
}
17
#endif