Debian Codegraph @

libtommath/bn_mp_exch.c

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