sl@0: /* sl@0: * Copyright (c) 1999 sl@0: * Boris Fomitchev sl@0: * sl@0: * This material is provided "as is", with absolutely no warranty expressed sl@0: * or implied. Any use is at your own risk. sl@0: * sl@0: * Permission to use or copy this software for any purpose is hereby granted sl@0: * without fee, provided the above notices are retained on all copies. sl@0: * Permission to modify the code and to distribute modified code is granted, sl@0: * provided the above notices are retained, and a notice that the code was sl@0: * modified is included with the above copyright notice. sl@0: * sl@0: */ sl@0: sl@0: #if !defined (_STLP_OUTERMOST_HEADER_ID) sl@0: # define _STLP_OUTERMOST_HEADER_ID 0x203 sl@0: # include sl@0: #elif (_STLP_OUTERMOST_HEADER_ID == 0x203) && !defined (_STLP_DONT_POP_HEADER_ID) sl@0: # define _STLP_DONT_POP_HEADER_ID sl@0: #elif (_STLP_OUTERMOST_HEADER_ID == 0x203) sl@0: # error This header is only reentrant once, it should be modified if it has to be included more. sl@0: #endif sl@0: sl@0: #if defined (_STLP_WCE_EVC3) sl@0: struct _exception; sl@0: #endif sl@0: sl@0: #include _STLP_NATIVE_C_HEADER(float.h) sl@0: sl@0: #if defined(__BORLANDC__) && defined (__cplusplus) && (__BORLANDC__ >= 0x560) sl@0: _STLP_BEGIN_NAMESPACE sl@0: using ::_max_dble; sl@0: using ::_max_flt; sl@0: using ::_max_ldble; sl@0: using ::_tiny_ldble; sl@0: _STLP_END_NAMESPACE sl@0: #endif sl@0: sl@0: #if defined (__BORLANDC__) && defined (__cplusplus) && !defined (_STLP_BCC_FPU_BUG) sl@0: # define _STLP_BCC_FPU_BUG sl@0: // Ignore FPU exceptions, set FPU precision to 53 bits for floatio_test and cmath_test sl@0: static unsigned int _bcc_fpu_bug = _control87(PC_53|MCW_EM, MCW_PC|MCW_EM); sl@0: template sl@0: int __fpclass(_Fp __val) sl@0: { int __f = _fpclass(__val); _control87(PC_53|MCW_EM, MCW_PC|MCW_EM); return __f; } sl@0: # define _fpclass __fpclass sl@0: #endif sl@0: sl@0: #if (_STLP_OUTERMOST_HEADER_ID == 0x203) sl@0: # if ! defined (_STLP_DONT_POP_HEADER_ID) sl@0: # include sl@0: # undef _STLP_OUTERMOST_HEADER_ID sl@0: # endif sl@0: # undef _STLP_DONT_POP_HEADER_ID sl@0: #endif