os/ossrv/genericopenlibs/cppstdlib/stl/stlport/float.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/stlport/float.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,56 @@
     1.4 +/*
     1.5 + * Copyright (c) 1999
     1.6 + * Boris Fomitchev
     1.7 + *
     1.8 + * This material is provided "as is", with absolutely no warranty expressed
     1.9 + * or implied. Any use is at your own risk.
    1.10 + *
    1.11 + * Permission to use or copy this software for any purpose is hereby granted
    1.12 + * without fee, provided the above notices are retained on all copies.
    1.13 + * Permission to modify the code and to distribute modified code is granted,
    1.14 + * provided the above notices are retained, and a notice that the code was
    1.15 + * modified is included with the above copyright notice.
    1.16 + *
    1.17 + */
    1.18 +
    1.19 +#if !defined (_STLP_OUTERMOST_HEADER_ID)
    1.20 +#  define _STLP_OUTERMOST_HEADER_ID 0x203
    1.21 +#  include <stl/_prolog.h>
    1.22 +#elif (_STLP_OUTERMOST_HEADER_ID == 0x203) && !defined (_STLP_DONT_POP_HEADER_ID)
    1.23 +#  define _STLP_DONT_POP_HEADER_ID
    1.24 +#elif (_STLP_OUTERMOST_HEADER_ID == 0x203)
    1.25 +#  error This header is only reentrant once, it should be modified if it has to be included more.
    1.26 +#endif
    1.27 +
    1.28 +#if defined (_STLP_WCE_EVC3)
    1.29 +struct _exception;
    1.30 +#endif
    1.31 +
    1.32 +#include _STLP_NATIVE_C_HEADER(float.h)
    1.33 +
    1.34 +#if defined(__BORLANDC__) && defined (__cplusplus) && (__BORLANDC__ >= 0x560)
    1.35 +_STLP_BEGIN_NAMESPACE
    1.36 +using ::_max_dble;
    1.37 +using ::_max_flt;
    1.38 +using ::_max_ldble;
    1.39 +using ::_tiny_ldble;
    1.40 +_STLP_END_NAMESPACE
    1.41 +#endif
    1.42 +
    1.43 +#if defined (__BORLANDC__) && defined (__cplusplus) && !defined (_STLP_BCC_FPU_BUG)
    1.44 +#  define _STLP_BCC_FPU_BUG
    1.45 +// Ignore FPU exceptions, set FPU precision to 53 bits for floatio_test and cmath_test
    1.46 +static unsigned int _bcc_fpu_bug = _control87(PC_53|MCW_EM, MCW_PC|MCW_EM);
    1.47 +template <class _Fp>
    1.48 +int __fpclass(_Fp __val)
    1.49 +{ int __f = _fpclass(__val); _control87(PC_53|MCW_EM, MCW_PC|MCW_EM); return __f; }
    1.50 +#  define _fpclass __fpclass
    1.51 +#endif
    1.52 +
    1.53 +#if (_STLP_OUTERMOST_HEADER_ID == 0x203)
    1.54 +#  if ! defined (_STLP_DONT_POP_HEADER_ID)
    1.55 +#    include <stl/_epilog.h>
    1.56 +#    undef  _STLP_OUTERMOST_HEADER_ID
    1.57 +#  endif
    1.58 +#  undef  _STLP_DONT_POP_HEADER_ID
    1.59 +#endif