diff options
author | Javier Jardón <jjardon@gnome.org> | 2015-04-27 11:43:02 +0100 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-05-27 16:24:35 +0100 |
commit | 3c6e2acb7a85497467c87410220ec34e275b44ed (patch) | |
tree | 9071b814720e96d21a3fed8221b2284d8b3debf3 /gmp/mpf/size.c | |
parent | 7b48bf2011b4020c4a5a2d5d4149b03983f72cc2 (diff) | |
download | gcc-tarball-3c6e2acb7a85497467c87410220ec34e275b44ed.tar.gz |
Add GMP 6.0.0a tarball
Diffstat (limited to 'gmp/mpf/size.c')
-rw-r--r-- | gmp/mpf/size.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gmp/mpf/size.c b/gmp/mpf/size.c new file mode 100644 index 0000000000..c6b22b64cc --- /dev/null +++ b/gmp/mpf/size.c @@ -0,0 +1,39 @@ +/* mpf_size(x) -- return the number of limbs currently used by the + value of the float X. + +Copyright 1993-1995, 2001 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of either: + + * the GNU Lesser General Public License as published by the Free + Software Foundation; either version 3 of the License, or (at your + option) any later version. + +or + + * the GNU General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any + later version. + +or both in parallel, as here. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received copies of the GNU General Public License and the +GNU Lesser General Public License along with the GNU MP Library. If not, +see https://www.gnu.org/licenses/. */ + +#include "gmp.h" +#include "gmp-impl.h" + +size_t +mpf_size (mpf_srcptr f) __GMP_NOTHROW +{ + return __GMP_ABS (f->_mp_size); +} |