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