aboutsummaryrefslogtreecommitdiff
path: root/src/libtommath/mp_exch.c
blob: 50b97d9639e08058a6dce7f07a061d5f9a1c8fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "tommath_private.h"
#ifdef MP_EXCH_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */

/* swap the elements of two integers, for cases where you can't simply swap the
 * mp_int pointers around
 */
void mp_exch(mp_int *a, mp_int *b)
{
   MP_EXCH(mp_int, *a, *b);
}
#endif