/home/ntakagi/work/STLport-5.1.5/stlport/float.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1999
00003  * Boris Fomitchev
00004  *
00005  * This material is provided "as is", with absolutely no warranty expressed
00006  * or implied. Any use is at your own risk.
00007  *
00008  * Permission to use or copy this software for any purpose is hereby granted
00009  * without fee, provided the above notices are retained on all copies.
00010  * Permission to modify the code and to distribute modified code is granted,
00011  * provided the above notices are retained, and a notice that the code was
00012  * modified is included with the above copyright notice.
00013  *
00014  */
00015 
00016 #if !defined (_STLP_OUTERMOST_HEADER_ID)
00017 #  define _STLP_OUTERMOST_HEADER_ID 0x203
00018 #  include <stl/_prolog.h>
00019 #elif (_STLP_OUTERMOST_HEADER_ID == 0x203) && !defined (_STLP_DONT_POP_HEADER_ID)
00020 #  define _STLP_DONT_POP_HEADER_ID
00021 #elif (_STLP_OUTERMOST_HEADER_ID == 0x203)
00022 #  error This header is only reentrant once, it should be modified if it has to be included more.
00023 #endif
00024 
00025 #if defined (_STLP_WCE_EVC3)
00026 struct _exception;
00027 #endif
00028 
00029 #include _STLP_NATIVE_C_HEADER(float.h)
00030 
00031 #if defined(__BORLANDC__) && defined (__cplusplus) && (__BORLANDC__ >= 0x560)
00032 _STLP_BEGIN_NAMESPACE
00033 using ::_max_dble;
00034 using ::_max_flt;
00035 using ::_max_ldble;
00036 using ::_tiny_ldble;
00037 _STLP_END_NAMESPACE
00038 #endif
00039 
00040 #if defined (__BORLANDC__) && defined (__cplusplus) && !defined (_STLP_BCC_FPU_BUG)
00041 #  define _STLP_BCC_FPU_BUG
00042 // Ignore FPU exceptions, set FPU precision to 53 bits for floatio_test and cmath_test
00043 static unsigned int _bcc_fpu_bug = _control87(PC_53|MCW_EM, MCW_PC|MCW_EM);
00044 template <class _Fp>
00045 int __fpclass(_Fp __val)
00046 { int __f = _fpclass(__val); _control87(PC_53|MCW_EM, MCW_PC|MCW_EM); return __f; }
00047 #  define _fpclass __fpclass
00048 #endif
00049 
00050 #if (_STLP_OUTERMOST_HEADER_ID == 0x203)
00051 #  if ! defined (_STLP_DONT_POP_HEADER_ID)
00052 #    include <stl/_epilog.h>
00053 #    undef  _STLP_OUTERMOST_HEADER_ID
00054 #  endif
00055 #  undef  _STLP_DONT_POP_HEADER_ID
00056 #endif



Generated on Mon Mar 10 15:32:17 2008 by  doxygen 1.5.1