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