|
Packit Service |
8591b6 |
/* mpfr_fits_uintmax_p -- test whether an mpfr fits an uintmax_t.
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
Copyright 2004, 2006-2017 Free Software Foundation, Inc.
|
|
Packit Service |
8591b6 |
Contributed by the AriC and Caramba projects, INRIA.
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
This file is part of the GNU MPFR Library.
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
The GNU MPFR Library is free software; you can redistribute it and/or modify
|
|
Packit Service |
8591b6 |
it under the terms of the GNU Lesser General Public License as published by
|
|
Packit Service |
8591b6 |
the Free Software Foundation; either version 3 of the License, or (at your
|
|
Packit Service |
8591b6 |
option) any later version.
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
The GNU MPFR Library is distributed in the hope that it will be useful, but
|
|
Packit Service |
8591b6 |
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
Packit Service |
8591b6 |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
Packit Service |
8591b6 |
License for more details.
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
8591b6 |
along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
|
|
Packit Service |
8591b6 |
http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
|
|
Packit Service |
8591b6 |
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
#ifdef HAVE_CONFIG_H
|
|
Packit Service |
8591b6 |
# include "config.h" /* for a build within gmp */
|
|
Packit Service |
8591b6 |
#endif
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
#include "mpfr-intmax.h"
|
|
Packit Service |
8591b6 |
#include "mpfr-impl.h"
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
/* Note: though mpfr-impl.h is included in fits_u.h, we also include it
|
|
Packit Service |
8591b6 |
above so that it gets included even when _MPFR_H_HAVE_INTMAX_T is not
|
|
Packit Service |
8591b6 |
defined; this is necessary to avoid an empty translation unit, which
|
|
Packit Service |
8591b6 |
is forbidden by ISO C. Without this, a failing test can be reproduced
|
|
Packit Service |
8591b6 |
by creating an invalid stdint.h somewhere in the default include path
|
|
Packit Service |
8591b6 |
and by compiling MPFR with "gcc -ansi -pedantic-errors". */
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
#ifdef _MPFR_H_HAVE_INTMAX_T
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
#define FUNCTION mpfr_fits_uintmax_p
|
|
Packit Service |
8591b6 |
#define MAXIMUM MPFR_UINTMAX_MAX
|
|
Packit Service |
8591b6 |
#define TYPE uintmax_t
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
#include "fits_u.h"
|
|
Packit Service |
8591b6 |
|
|
Packit Service |
8591b6 |
#endif
|