after multiple objections of libtom users [1], we decided to change licensing
[libtomfloat.git] / mpf_const_0.c
blobe6645a82b689bc582b445cb7f6690121b0cacd54
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 /* zero defined as 0 * 2^1 */
16 int mpf_const_0(mp_float *a)
18 mp_zero(&(a->mantissa));
19 a->exp = 1;
20 return MP_OKAY;