added libtomfloat-0.01
[libtomfloat.git] / mpf_exch.c
bloba0f822bd40bdd870f6176af1030f32165c5ff9c8
1 /* LibTomFloat, multiple-precision floating-point library
3 * LibTomFloat is a library that provides multiple-precision
4 * floating-point artihmetic as well as trigonometric functionality.
6 * This library requires the public domain LibTomMath to be installed.
7 *
8 * This library is free for all purposes without any express
9 * gurantee it works
11 * Tom St Denis, tomstdenis@iahu.ca, http://float.libtomcrypt.org
13 #include <tomfloat.h>
15 void mpf_exch(mp_float *a, mp_float *b)
17 mp_float tmp;
18 tmp = *a; *a = *b; *b = tmp;