1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/stlportv5/stl/_limits.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,538 @@
1.4 +/*
1.5 + * Copyright (c) 1997
1.6 + * Silicon Graphics Computer Systems, Inc.
1.7 + *
1.8 + * Copyright (c) 1999
1.9 + * Boris Fomitchev
1.10 + *
1.11 + * This material is provided "as is", with absolutely no warranty expressed
1.12 + * or implied. Any use is at your own risk.
1.13 + *
1.14 + * Permission to use or copy this software for any purpose is hereby granted
1.15 + * without fee, provided the above notices are retained on all copies.
1.16 + * Permission to modify the code and to distribute modified code is granted,
1.17 + * provided the above notices are retained, and a notice that the code was
1.18 + * modified is included with the above copyright notice.
1.19 + *
1.20 + */
1.21 +
1.22 +/* NOTE: This may be not portable code. Parts of numeric_limits<> are
1.23 + * inherently machine-dependent. At present this file is suitable
1.24 + * for the MIPS, SPARC, Alpha and ia32 architectures.
1.25 + */
1.26 +
1.27 +#ifndef _STLP_INTERNAL_LIMITS
1.28 +#define _STLP_INTERNAL_LIMITS
1.29 +
1.30 +#ifndef _STLP_CLIMITS
1.31 +# include <climits>
1.32 +#endif
1.33 +
1.34 +#ifndef _STLP_CFLOAT
1.35 +# include <cfloat>
1.36 +#endif
1.37 +
1.38 +#if defined (_STLP_HAS_WCHAR_T) && !defined (_STLP_INTERNAL_CWCHAR)
1.39 +# include <stl/_cwchar.h>
1.40 +#endif
1.41 +
1.42 +_STLP_BEGIN_NAMESPACE
1.43 +
1.44 +enum float_round_style {
1.45 + round_indeterminate = -1,
1.46 + round_toward_zero = 0,
1.47 + round_to_nearest = 1,
1.48 + round_toward_infinity = 2,
1.49 + round_toward_neg_infinity = 3
1.50 +};
1.51 +
1.52 +enum float_denorm_style {
1.53 + denorm_indeterminate = -1,
1.54 + denorm_absent = 0,
1.55 + denorm_present = 1
1.56 +};
1.57 +
1.58 +_STLP_MOVE_TO_PRIV_NAMESPACE
1.59 +
1.60 +// Base class for all specializations of numeric_limits.
1.61 +template <class __number>
1.62 +class _Numeric_limits_base {
1.63 +public:
1.64 +
1.65 + static __number (_STLP_CALL min)() _STLP_NOTHROW { return __number(); }
1.66 + static __number (_STLP_CALL max)() _STLP_NOTHROW { return __number(); }
1.67 +
1.68 +#if defined ( _STLP_STATIC_CONST_INIT_BUG)
1.69 + enum {
1.70 +#else
1.71 + static const int
1.72 +#endif
1.73 +
1.74 + digits = 0,
1.75 + digits10 = 0,
1.76 + radix = 0,
1.77 + min_exponent = 0,
1.78 + min_exponent10 = 0,
1.79 + max_exponent = 0,
1.80 + max_exponent10 = 0
1.81 +
1.82 +#if defined ( _STLP_STATIC_CONST_INIT_BUG)
1.83 + ,
1.84 + has_denorm = denorm_absent,
1.85 + round_style = round_toward_zero,
1.86 +#else
1.87 + ;
1.88 + static const float_denorm_style has_denorm = denorm_absent;
1.89 + static const float_round_style round_style = round_toward_zero;
1.90 + static const bool
1.91 +#endif
1.92 +
1.93 + is_specialized = false,
1.94 + is_signed = false,
1.95 + is_integer = false,
1.96 + is_exact = false,
1.97 + has_infinity = false,
1.98 + has_quiet_NaN = false,
1.99 + has_signaling_NaN = false,
1.100 + has_denorm_loss = false,
1.101 + is_iec559 = false,
1.102 + is_bounded = false,
1.103 + is_modulo = false,
1.104 + traps = false,
1.105 + tinyness_before = false
1.106 +#if defined ( _STLP_STATIC_CONST_INIT_BUG)
1.107 + }
1.108 +#endif
1.109 + ;
1.110 +
1.111 + static __number _STLP_CALL epsilon() _STLP_NOTHROW { return __number(); }
1.112 + static __number _STLP_CALL round_error() _STLP_NOTHROW { return __number(); }
1.113 +
1.114 + static __number _STLP_CALL infinity() _STLP_NOTHROW { return __number(); }
1.115 + static __number _STLP_CALL quiet_NaN() _STLP_NOTHROW { return __number(); }
1.116 + static __number _STLP_CALL signaling_NaN() _STLP_NOTHROW { return __number(); }
1.117 + static __number _STLP_CALL denorm_min() _STLP_NOTHROW { return __number(); }
1.118 +};
1.119 +
1.120 +// Base class for integers.
1.121 +
1.122 +#ifdef _STLP_LIMITED_DEFAULT_TEMPLATES
1.123 +# ifdef _STLP_LONG_LONG
1.124 +# define _STLP_LIMITS_MIN_TYPE _STLP_LONG_LONG
1.125 +# define _STLP_LIMITS_MAX_TYPE unsigned _STLP_LONG_LONG
1.126 +# else
1.127 +# define _STLP_LIMITS_MIN_TYPE long
1.128 +# define _STLP_LIMITS_MAX_TYPE unsigned long
1.129 +# endif
1.130 +#else
1.131 +# define _STLP_LIMITS_MIN_TYPE _Int
1.132 +# define _STLP_LIMITS_MAX_TYPE _Int
1.133 +#endif /* _STLP_LIMITED_DEFAULT_TEMPLATES */
1.134 +
1.135 +template <class _Int,
1.136 + _STLP_LIMITS_MIN_TYPE __imin,
1.137 + _STLP_LIMITS_MAX_TYPE __imax,
1.138 + int __idigits, bool __ismod>
1.139 +class _Integer_limits : public _Numeric_limits_base<_Int> {
1.140 +public:
1.141 +
1.142 + static _Int (_STLP_CALL min) () _STLP_NOTHROW { return (_Int)__imin; }
1.143 + static _Int (_STLP_CALL max) () _STLP_NOTHROW { return (_Int)__imax; }
1.144 +
1.145 +#if defined (_STLP_STATIC_CONST_INIT_BUG)
1.146 + enum {
1.147 +#else
1.148 + static const int
1.149 +#endif
1.150 + digits = (__idigits < 0) ?
1.151 + ((int)((sizeof(_Int) * (CHAR_BIT))) - ((__imin == 0) ? 0 : 1))
1.152 + : (__idigits),
1.153 + digits10 = (digits * 301UL) / 1000,
1.154 + radix = 2
1.155 +#if !defined (_STLP_STATIC_CONST_INIT_BUG)
1.156 + ;
1.157 + static const bool
1.158 +#else
1.159 + ,
1.160 +#endif
1.161 + is_specialized = true,
1.162 + is_signed = (__imin != 0),
1.163 + is_integer = true,
1.164 + is_exact = true,
1.165 + is_bounded = true,
1.166 + is_modulo = __ismod
1.167 +#if defined ( _STLP_STATIC_CONST_INIT_BUG)
1.168 + }
1.169 +#endif
1.170 + ;
1.171 +};
1.172 +
1.173 +// Base class for floating-point numbers.
1.174 +template <class __number,
1.175 + int __Digits, int __Digits10,
1.176 + int __MinExp, int __MaxExp,
1.177 + int __MinExp10, int __MaxExp10,
1.178 + bool __IsIEC559,
1.179 + float_round_style __RoundStyle>
1.180 +class _Floating_limits : public _Numeric_limits_base<__number> {
1.181 +public:
1.182 +
1.183 +#if defined (_STLP_STATIC_CONST_INIT_BUG)
1.184 + enum {
1.185 +#else
1.186 + static const int
1.187 +#endif
1.188 +
1.189 + digits = __Digits,
1.190 + digits10 = __Digits10,
1.191 +
1.192 + radix = ( FLT_RADIX /* 2 */ ),
1.193 + min_exponent = __MinExp,
1.194 + max_exponent = __MaxExp,
1.195 + min_exponent10 = __MinExp10,
1.196 + max_exponent10 = __MaxExp10
1.197 +
1.198 +#if defined (_STLP_STATIC_CONST_INIT_BUG)
1.199 + ,
1.200 + has_denorm = denorm_indeterminate,
1.201 + round_style = __RoundStyle,
1.202 +#else
1.203 + ;
1.204 + static const float_denorm_style has_denorm = denorm_indeterminate;
1.205 + static const float_round_style round_style = __RoundStyle;
1.206 + static const bool
1.207 +#endif
1.208 +
1.209 + is_specialized = true,
1.210 + is_signed = true,
1.211 +
1.212 + //IEC 559 specify the floating point representation of
1.213 + //infinity, quiet and signaling Not a Number. Not supporting
1.214 + //it is consider as not being able to grant those values.
1.215 +#if (defined (_STLP_MSVC) && (_STLP_MSVC < 1300))
1.216 + //MSVC 6 do not fully support IEC 599 but grant a good infinity value.
1.217 + has_infinity = true,
1.218 +#else
1.219 + has_infinity = __IsIEC559,
1.220 +#endif
1.221 + has_quiet_NaN = __IsIEC559,
1.222 + has_signaling_NaN = __IsIEC559,
1.223 +
1.224 + has_denorm_loss = false,
1.225 + is_iec559 = __IsIEC559,
1.226 + is_bounded = true,
1.227 + traps = true,
1.228 + tinyness_before= false
1.229 +
1.230 +#if defined (_STLP_STATIC_CONST_INIT_BUG)
1.231 + }
1.232 +#endif
1.233 + ;
1.234 +};
1.235 +
1.236 +_STLP_MOVE_TO_STD_NAMESPACE
1.237 +
1.238 +// Class numeric_limits
1.239 +
1.240 +// The unspecialized class.
1.241 +
1.242 +template<class _Tp>
1.243 +class numeric_limits : public _STLP_PRIV _Numeric_limits_base<_Tp> {};
1.244 +
1.245 +// Specializations for all built-in integral types.
1.246 +
1.247 +#if !defined (_STLP_NO_BOOL)
1.248 +_STLP_TEMPLATE_NULL
1.249 +class numeric_limits<bool>
1.250 + : public _STLP_PRIV _Integer_limits<bool, false, true, 1, false>
1.251 +{};
1.252 +#endif /* _STLP_NO_BOOL */
1.253 +
1.254 +_STLP_TEMPLATE_NULL
1.255 +class numeric_limits<char>
1.256 + : public _STLP_PRIV _Integer_limits<char, CHAR_MIN, CHAR_MAX, -1, true>
1.257 +{};
1.258 +
1.259 +#if !defined (_STLP_NO_SIGNED_BUILTINS)
1.260 +_STLP_TEMPLATE_NULL
1.261 +class numeric_limits<signed char>
1.262 + : public _STLP_PRIV _Integer_limits<signed char, SCHAR_MIN, SCHAR_MAX, -1, true>
1.263 +{};
1.264 +#endif
1.265 +
1.266 +_STLP_TEMPLATE_NULL
1.267 +class numeric_limits<unsigned char>
1.268 + : public _STLP_PRIV _Integer_limits<unsigned char, 0, UCHAR_MAX, -1, true>
1.269 +{};
1.270 +
1.271 +#if !(defined (_STLP_NO_WCHAR_T) || defined (_STLP_WCHAR_T_IS_USHORT))
1.272 +
1.273 +_STLP_TEMPLATE_NULL
1.274 +class numeric_limits<wchar_t>
1.275 + : public _STLP_PRIV _Integer_limits<wchar_t, WCHAR_MIN, WCHAR_MAX, -1, true>
1.276 +{};
1.277 +
1.278 +#endif
1.279 +
1.280 +_STLP_TEMPLATE_NULL
1.281 +class numeric_limits<short>
1.282 + : public _STLP_PRIV _Integer_limits<short, SHRT_MIN, SHRT_MAX, -1, true>
1.283 +{};
1.284 +
1.285 +_STLP_TEMPLATE_NULL
1.286 +class numeric_limits<unsigned short>
1.287 + : public _STLP_PRIV _Integer_limits<unsigned short, 0, USHRT_MAX, -1, true>
1.288 +{};
1.289 +
1.290 +#if defined (__xlC__) && (__xlC__ == 0x500)
1.291 +# undef INT_MIN
1.292 +# define INT_MIN -2147483648
1.293 +#endif
1.294 +
1.295 +_STLP_TEMPLATE_NULL
1.296 +class numeric_limits<int>
1.297 + : public _STLP_PRIV _Integer_limits<int, INT_MIN, INT_MAX, -1, true>
1.298 +{};
1.299 +
1.300 +_STLP_TEMPLATE_NULL
1.301 +class numeric_limits<unsigned int>
1.302 + : public _STLP_PRIV _Integer_limits<unsigned int, 0, UINT_MAX, -1, true>
1.303 +{};
1.304 +
1.305 +_STLP_TEMPLATE_NULL
1.306 +class numeric_limits<long>
1.307 + : public _STLP_PRIV _Integer_limits<long, LONG_MIN, LONG_MAX, -1, true>
1.308 +{};
1.309 +
1.310 +_STLP_TEMPLATE_NULL
1.311 +class numeric_limits<unsigned long>
1.312 + : public _STLP_PRIV _Integer_limits<unsigned long, 0, ULONG_MAX, -1, true>
1.313 +{};
1.314 +
1.315 +#if defined (_STLP_LONG_LONG)
1.316 +
1.317 +# if defined (_STLP_MSVC) || defined (__BORLANDC__)
1.318 +# define LONGLONG_MAX 0x7fffffffffffffffi64
1.319 +# define LONGLONG_MIN (-LONGLONG_MAX-1i64)
1.320 +# define ULONGLONG_MAX 0xffffffffffffffffUi64
1.321 +# else
1.322 +# ifndef LONGLONG_MAX
1.323 +# define LONGLONG_MAX 0x7fffffffffffffffLL
1.324 +# endif
1.325 +# ifndef LONGLONG_MIN
1.326 +# define LONGLONG_MIN (-LONGLONG_MAX-1LL)
1.327 +# endif
1.328 +# ifndef ULONGLONG_MAX
1.329 +# define ULONGLONG_MAX 0xffffffffffffffffULL
1.330 +# endif
1.331 +# endif
1.332 +
1.333 +# if !defined(__GNUC__) || (__GNUC__ == 2 && __GNUC_MINOR__ <= 96)
1.334 +
1.335 +_STLP_TEMPLATE_NULL
1.336 +class numeric_limits<_STLP_LONG_LONG>
1.337 + : public _STLP_PRIV _Integer_limits<_STLP_LONG_LONG, LONGLONG_MIN, LONGLONG_MAX, -1, true>
1.338 +{};
1.339 +
1.340 +_STLP_TEMPLATE_NULL
1.341 +class numeric_limits<unsigned _STLP_LONG_LONG>
1.342 + : public _STLP_PRIV _Integer_limits<unsigned _STLP_LONG_LONG, 0, ULONGLONG_MAX, -1, true>
1.343 +{};
1.344 +# else /* gcc 2.97 (after 2000-11-01), 2.98, 3.0 */
1.345 +/*
1.346 + newest gcc has new mangling scheme, that has problem
1.347 + with generating name [instantiated] of template specialization like
1.348 + _Integer_limits<_STLP_LONG_LONG, LONGLONG_MIN, LONGLONG_MAX, -1, true>
1.349 + ~~~~~~~~~~~~ ~~~~~~~~~~~~
1.350 + Below is code that solve this problem.
1.351 + - ptr
1.352 + */
1.353 +_STLP_TEMPLATE_NULL
1.354 +class numeric_limits<_STLP_LONG_LONG>
1.355 + : public _STLP_PRIV _Numeric_limits_base<_STLP_LONG_LONG> {
1.356 +public:
1.357 +
1.358 + static _STLP_LONG_LONG (_STLP_CALL min) () _STLP_NOTHROW { return LONGLONG_MIN; }
1.359 + static _STLP_LONG_LONG (_STLP_CALL max) () _STLP_NOTHROW { return LONGLONG_MAX; }
1.360 +
1.361 +# if defined ( _STLP_STATIC_CONST_INIT_BUG)
1.362 + enum {
1.363 +# else
1.364 + static const int
1.365 +# endif
1.366 + digits = ((int)((sizeof(_STLP_LONG_LONG) * (CHAR_BIT))) - 1),
1.367 + digits10 = (digits * 301UL) / 1000,
1.368 + radix = 2
1.369 +# if ! defined (_STLP_STATIC_CONST_INIT_BUG)
1.370 + ;
1.371 + static const bool
1.372 +# else
1.373 + ,
1.374 +# endif
1.375 + is_specialized = true,
1.376 + is_signed = true,
1.377 + is_integer = true,
1.378 + is_exact = true,
1.379 + is_bounded = true,
1.380 + is_modulo = true
1.381 +# if defined (_STLP_STATIC_CONST_INIT_BUG)
1.382 + }
1.383 +# endif
1.384 + ;
1.385 +};
1.386 +
1.387 +_STLP_TEMPLATE_NULL
1.388 +class numeric_limits<unsigned _STLP_LONG_LONG>
1.389 + : public _STLP_PRIV _Numeric_limits_base<unsigned _STLP_LONG_LONG> {
1.390 +public:
1.391 +
1.392 + static unsigned _STLP_LONG_LONG (_STLP_CALL min) () _STLP_NOTHROW { return 0ULL; }
1.393 + static unsigned _STLP_LONG_LONG (_STLP_CALL max) () _STLP_NOTHROW { return ULONGLONG_MAX; }
1.394 +
1.395 +# if defined (_STLP_STATIC_CONST_INIT_BUG)
1.396 + enum {
1.397 +# else
1.398 + static const int
1.399 +# endif
1.400 + digits = ((int)((sizeof(unsigned _STLP_LONG_LONG) * (CHAR_BIT)))),
1.401 + digits10 = (digits * 301UL) / 1000,
1.402 + radix = 2
1.403 +# if ! defined (_STLP_STATIC_CONST_INIT_BUG)
1.404 + ;
1.405 + static const bool
1.406 +# else
1.407 + ,
1.408 +# endif
1.409 + is_specialized = true,
1.410 + is_signed = false,
1.411 + is_integer = true,
1.412 + is_exact = true,
1.413 + is_bounded = true,
1.414 + is_modulo = true
1.415 +# if defined ( _STLP_STATIC_CONST_INIT_BUG)
1.416 + }
1.417 +# endif
1.418 + ;
1.419 +};
1.420 +
1.421 +# endif /* __GNUC__ > 2000-11-01 */
1.422 +
1.423 +#endif /* _STLP_LONG_LONG */
1.424 +
1.425 +_STLP_MOVE_TO_PRIV_NAMESPACE
1.426 +
1.427 +// Specializations for all built-in floating-point types.
1.428 +template <class __dummy>
1.429 +class _LimG {
1.430 +public:
1.431 + static float _STLP_CALL get_F_inf();
1.432 + static float _STLP_CALL get_F_qNaN();
1.433 + static float _STLP_CALL get_F_sNaN();
1.434 + static double _STLP_CALL get_D_inf();
1.435 + static double _STLP_CALL get_D_qNaN();
1.436 + static double _STLP_CALL get_D_sNaN();
1.437 +
1.438 +#if !defined (_STLP_NO_LONG_DOUBLE)
1.439 + static long double _STLP_CALL get_LD_inf();
1.440 + static long double _STLP_CALL get_LD_qNaN();
1.441 + static long double _STLP_CALL get_LD_sNaN();
1.442 +#endif
1.443 +};
1.444 +
1.445 +#if defined (_STLP_USE_TEMPLATE_EXPORT)
1.446 +_STLP_EXPORT_TEMPLATE_CLASS _LimG<bool>;
1.447 +#endif
1.448 +
1.449 +_STLP_MOVE_TO_STD_NAMESPACE
1.450 +
1.451 +_STLP_TEMPLATE_NULL
1.452 +class numeric_limits<float>
1.453 + : public _STLP_PRIV _Floating_limits<float,
1.454 + FLT_MANT_DIG, // Binary digits of precision
1.455 + FLT_DIG, // Decimal digits of precision
1.456 + FLT_MIN_EXP, // Minimum exponent
1.457 + FLT_MAX_EXP, // Maximum exponent
1.458 + FLT_MIN_10_EXP, // Minimum base 10 exponent
1.459 + FLT_MAX_10_EXP, // Maximum base 10 exponent
1.460 +#if defined (_STLP_NO_IEC559_SUPPORT)
1.461 + false, // do not conform to iec559
1.462 +#else
1.463 + true, // conforms to iec559
1.464 +#endif
1.465 + round_to_nearest> {
1.466 +public:
1.467 + static float (_STLP_CALL min) () _STLP_NOTHROW { return FLT_MIN; }
1.468 + static float _STLP_CALL denorm_min() _STLP_NOTHROW { return FLT_MIN; }
1.469 + static float (_STLP_CALL max) () _STLP_NOTHROW { _STLP_USING_VENDOR_CSTD return FLT_MAX; }
1.470 + static float _STLP_CALL epsilon() _STLP_NOTHROW { return FLT_EPSILON; }
1.471 + static float _STLP_CALL round_error() _STLP_NOTHROW { return 0.5f; } // Units: ulps.
1.472 + static float _STLP_CALL infinity() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_F_inf(); }
1.473 + static float _STLP_CALL quiet_NaN() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_F_qNaN(); }
1.474 + static float _STLP_CALL signaling_NaN() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_F_sNaN(); }
1.475 +};
1.476 +
1.477 +_STLP_TEMPLATE_NULL
1.478 +class numeric_limits<double>
1.479 + : public _STLP_PRIV _Floating_limits<double,
1.480 + DBL_MANT_DIG, // Binary digits of precision
1.481 + DBL_DIG, // Decimal digits of precision
1.482 + DBL_MIN_EXP, // Minimum exponent
1.483 + DBL_MAX_EXP, // Maximum exponent
1.484 + DBL_MIN_10_EXP, // Minimum base 10 exponent
1.485 + DBL_MAX_10_EXP, // Maximum base 10 exponent
1.486 +#if defined (_STLP_NO_IEC559_SUPPORT)
1.487 + false, // do not conform to iec559
1.488 +#else
1.489 + true, // conforms to iec559
1.490 +#endif
1.491 + round_to_nearest> {
1.492 +public:
1.493 + static double (_STLP_CALL min)() _STLP_NOTHROW { return DBL_MIN; }
1.494 + static double _STLP_CALL denorm_min() _STLP_NOTHROW { return DBL_MIN; }
1.495 + static double (_STLP_CALL max)() _STLP_NOTHROW { _STLP_USING_VENDOR_CSTD return DBL_MAX; }
1.496 + static double _STLP_CALL epsilon() _STLP_NOTHROW { return DBL_EPSILON; }
1.497 + static double _STLP_CALL round_error() _STLP_NOTHROW { return 0.5; } // Units: ulps.
1.498 + static double _STLP_CALL infinity() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_D_inf(); }
1.499 + static double _STLP_CALL quiet_NaN() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_D_qNaN(); }
1.500 + static double _STLP_CALL signaling_NaN() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_D_sNaN(); }
1.501 +};
1.502 +
1.503 +#if !defined (_STLP_NO_LONG_DOUBLE)
1.504 +
1.505 +_STLP_TEMPLATE_NULL
1.506 +class numeric_limits<long double>
1.507 + : public _STLP_PRIV _Floating_limits<long double,
1.508 + LDBL_MANT_DIG, // Binary digits of precision
1.509 + LDBL_DIG, // Decimal digits of precision
1.510 + LDBL_MIN_EXP, // Minimum exponent
1.511 + LDBL_MAX_EXP, // Maximum exponent
1.512 + LDBL_MIN_10_EXP,// Minimum base 10 exponent
1.513 + LDBL_MAX_10_EXP,// Maximum base 10 exponent
1.514 + false, // do not conform to iec559
1.515 + round_to_nearest> {
1.516 +public:
1.517 + static long double (_STLP_CALL min) () _STLP_NOTHROW { _STLP_USING_VENDOR_CSTD return LDBL_MIN; }
1.518 + static long double _STLP_CALL denorm_min() _STLP_NOTHROW { _STLP_USING_VENDOR_CSTD return LDBL_MIN; }
1.519 + static long double (_STLP_CALL max) () _STLP_NOTHROW { _STLP_USING_VENDOR_CSTD return LDBL_MAX; }
1.520 + static long double _STLP_CALL epsilon() _STLP_NOTHROW { return LDBL_EPSILON; }
1.521 + static long double _STLP_CALL round_error() _STLP_NOTHROW { return 4; } // Units: ulps.
1.522 + static long double _STLP_CALL infinity() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_LD_inf(); }
1.523 + static long double _STLP_CALL quiet_NaN() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_LD_qNaN(); }
1.524 + static long double _STLP_CALL signaling_NaN() _STLP_NOTHROW { return _STLP_PRIV _LimG<bool>::get_LD_sNaN(); }
1.525 +};
1.526 +
1.527 +#endif
1.528 +
1.529 +// We write special values (Inf and NaN) as bit patterns and
1.530 +// cast the the appropriate floating-point types.
1.531 +_STLP_END_NAMESPACE
1.532 +
1.533 +#if !defined (_STLP_LINK_TIME_INSTANTIATION)
1.534 +# include <stl/_limits.c>
1.535 +#endif
1.536 +
1.537 +#endif
1.538 +
1.539 +// Local Variables:
1.540 +// mode:C++
1.541 +// End: