1 /* instantiation of numeric_limits specializations. 2 3 Copyright 2012 Free Software Foundation, Inc. 4 5 This file is part of the GNU MP Library. 6 7 The GNU MP Library is free software; you can redistribute it and/or modify 8 it under the terms of the GNU Lesser General Public License as published by 9 the Free Software Foundation; either version 3 of the License, or (at your 10 option) any later version. 11 12 The GNU MP Library is distributed in the hope that it will be useful, but 13 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 License for more details. 16 17 You should have received a copy of the GNU Lesser General Public License 18 along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 20 #include "gmpxx.h" 21 22 namespace std { 23 #define GMPXX_INSTANTIATE_LIMITS(T) \ 24 const bool numeric_limits<T>::is_specialized; \ 25 const int numeric_limits<T>::digits; \ 26 const int numeric_limits<T>::digits10; \ 27 const int numeric_limits<T>::max_digits10; \ 28 const bool numeric_limits<T>::is_signed; \ 29 const bool numeric_limits<T>::is_integer; \ 30 const bool numeric_limits<T>::is_exact; \ 31 const int numeric_limits<T>::radix; \ 32 const int numeric_limits<T>::min_exponent; \ 33 const int numeric_limits<T>::min_exponent10; \ 34 const int numeric_limits<T>::max_exponent; \ 35 const int numeric_limits<T>::max_exponent10; \ 36 const bool numeric_limits<T>::has_infinity; \ 37 const bool numeric_limits<T>::has_quiet_NaN; \ 38 const bool numeric_limits<T>::has_signaling_NaN; \ 39 const float_denorm_style numeric_limits<T>::has_denorm; \ 40 const bool numeric_limits<T>::has_denorm_loss; \ 41 const bool numeric_limits<T>::is_iec559; \ 42 const bool numeric_limits<T>::is_bounded; \ 43 const bool numeric_limits<T>::is_modulo; \ 44 const bool numeric_limits<T>::traps; \ 45 const bool numeric_limits<T>::tinyness_before; \ 46 const float_round_style numeric_limits<T>::round_style 47 48 GMPXX_INSTANTIATE_LIMITS(mpz_class); 49 GMPXX_INSTANTIATE_LIMITS(mpq_class); 50 GMPXX_INSTANTIATE_LIMITS(mpf_class); 51 } 52