os/ossrv/genericopenlibs/cppstdlib/stl/stlport/float.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
 * Copyright (c) 1999
sl@0
     3
 * Boris Fomitchev
sl@0
     4
 *
sl@0
     5
 * This material is provided "as is", with absolutely no warranty expressed
sl@0
     6
 * or implied. Any use is at your own risk.
sl@0
     7
 *
sl@0
     8
 * Permission to use or copy this software for any purpose is hereby granted
sl@0
     9
 * without fee, provided the above notices are retained on all copies.
sl@0
    10
 * Permission to modify the code and to distribute modified code is granted,
sl@0
    11
 * provided the above notices are retained, and a notice that the code was
sl@0
    12
 * modified is included with the above copyright notice.
sl@0
    13
 *
sl@0
    14
 */
sl@0
    15
sl@0
    16
#if !defined (_STLP_OUTERMOST_HEADER_ID)
sl@0
    17
#  define _STLP_OUTERMOST_HEADER_ID 0x203
sl@0
    18
#  include <stl/_prolog.h>
sl@0
    19
#elif (_STLP_OUTERMOST_HEADER_ID == 0x203) && !defined (_STLP_DONT_POP_HEADER_ID)
sl@0
    20
#  define _STLP_DONT_POP_HEADER_ID
sl@0
    21
#elif (_STLP_OUTERMOST_HEADER_ID == 0x203)
sl@0
    22
#  error This header is only reentrant once, it should be modified if it has to be included more.
sl@0
    23
#endif
sl@0
    24
sl@0
    25
#if defined (_STLP_WCE_EVC3)
sl@0
    26
struct _exception;
sl@0
    27
#endif
sl@0
    28
sl@0
    29
#include _STLP_NATIVE_C_HEADER(float.h)
sl@0
    30
sl@0
    31
#if defined(__BORLANDC__) && defined (__cplusplus) && (__BORLANDC__ >= 0x560)
sl@0
    32
_STLP_BEGIN_NAMESPACE
sl@0
    33
using ::_max_dble;
sl@0
    34
using ::_max_flt;
sl@0
    35
using ::_max_ldble;
sl@0
    36
using ::_tiny_ldble;
sl@0
    37
_STLP_END_NAMESPACE
sl@0
    38
#endif
sl@0
    39
sl@0
    40
#if defined (__BORLANDC__) && defined (__cplusplus) && !defined (_STLP_BCC_FPU_BUG)
sl@0
    41
#  define _STLP_BCC_FPU_BUG
sl@0
    42
// Ignore FPU exceptions, set FPU precision to 53 bits for floatio_test and cmath_test
sl@0
    43
static unsigned int _bcc_fpu_bug = _control87(PC_53|MCW_EM, MCW_PC|MCW_EM);
sl@0
    44
template <class _Fp>
sl@0
    45
int __fpclass(_Fp __val)
sl@0
    46
{ int __f = _fpclass(__val); _control87(PC_53|MCW_EM, MCW_PC|MCW_EM); return __f; }
sl@0
    47
#  define _fpclass __fpclass
sl@0
    48
#endif
sl@0
    49
sl@0
    50
#if (_STLP_OUTERMOST_HEADER_ID == 0x203)
sl@0
    51
#  if ! defined (_STLP_DONT_POP_HEADER_ID)
sl@0
    52
#    include <stl/_epilog.h>
sl@0
    53
#    undef  _STLP_OUTERMOST_HEADER_ID
sl@0
    54
#  endif
sl@0
    55
#  undef  _STLP_DONT_POP_HEADER_ID
sl@0
    56
#endif