Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (31 sloc) 0.802 kb
e549ccf added libtommath-0.32
Tom St Denis authored
1 #include <tommath.h>
2 #ifdef BN_MP_EXCH_C
57354e1 added libtommath-0.12
Tom St Denis authored
3 /* LibTomMath, multiple-precision integer library -- Tom St Denis
4 *
c1da6aa added libtommath-0.25
Tom St Denis authored
5 * LibTomMath is a library that provides multiple-precision
57354e1 added libtommath-0.12
Tom St Denis authored
6 * integer arithmetic as well as number theoretic functionality.
7 *
c1da6aa added libtommath-0.25
Tom St Denis authored
8 * The library was designed directly after the MPI library by
57354e1 added libtommath-0.12
Tom St Denis authored
9 * Michael Fromberger but has been written from scratch with
10 * additional optimizations in place.
11 *
12 * The library is free for all purposes without any express
13 * guarantee it works.
14 *
333aebc added libtommath-0.41
Tom St Denis authored
15 * Tom St Denis, tomstdenis@gmail.com, http://libtom.org
57354e1 added libtommath-0.12
Tom St Denis authored
16 */
17
14161e8 added libtommath-0.16
Tom St Denis authored
18 /* swap the elements of two integers, for cases where you can't simply swap the
455bb4d added libtommath-0.28
Tom St Denis authored
19 * mp_int pointers around
14161e8 added libtommath-0.16
Tom St Denis authored
20 */
57354e1 added libtommath-0.12
Tom St Denis authored
21 void
22 mp_exch (mp_int * a, mp_int * b)
23 {
b66471f added libtommath-0.13
Tom St Denis authored
24 mp_int t;
57354e1 added libtommath-0.12
Tom St Denis authored
25
c1da6aa added libtommath-0.25
Tom St Denis authored
26 t = *a;
57354e1 added libtommath-0.12
Tom St Denis authored
27 *a = *b;
28 *b = t;
29 }
e549ccf added libtommath-0.32
Tom St Denis authored
30 #endif
9294e79 added libtommath-0.36
Tom St Denis authored
31
32 /* $Source$ */
33 /* $Revision$ */
34 /* $Date$ */
Something went wrong with that request. Please try again.