epoc32/include/stdapis/stlport/cstd/cfloat
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 cfloat
     1 /*
       
     2  * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
       
     3  *
       
     4  * Copyright (c) 1999 
       
     5  * Boris Fomitchev
       
     6  *
       
     7  * This material is provided "as is", with absolutely no warranty expressed
       
     8  * or implied. Any use is at your own risk.
       
     9  *
       
    10  * Permission to use or copy this software for any purpose is hereby granted 
       
    11  * without fee, provided the above notices are retained on all copies.
       
    12  * Permission to modify the code and to distribute modified code is granted,
       
    13  * provided the above notices are retained, and a notice that the code was
       
    14  * modified is included with the above copyright notice.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef _STLP_CFLOAT
       
    19 # define _STLP_CFLOAT
       
    20 
       
    21 # ifndef _STLP_OUTERMOST_HEADER_ID
       
    22 #  define _STLP_OUTERMOST_HEADER_ID 0x106
       
    23 #  include <stl/_prolog.h>
       
    24 # endif
       
    25 
       
    26 // Borland defines some implementation constants in std:: namespace,
       
    27 // we do not want to import them.
       
    28 #if defined (__SYMBIAN32__) || defined (__WINS__)
       
    29 #ifdef __SYMBIAN32__
       
    30 #  include <math.h>
       
    31 #  include <float.h>
       
    32 #else
       
    33 # include _STLP_NATIVE_C_HEADER(math.h)
       
    34 # include _STLP_NATIVE_C_HEADER(float.h)
       
    35 #endif
       
    36 
       
    37 #define _DBL_RADIX      2                       /* exponent radix */
       
    38 #define _DBL_ROUNDS     1                       /* addition rounding: near */
       
    39 #define FLT_GUARD       0
       
    40 #define FLT_NORMALIZE   0
       
    41 
       
    42 #else
       
    43 # if defined  (_STLP_USE_NEW_C_HEADERS) && ! defined (__BORLANDC__)
       
    44 #  include _STLP_NATIVE_CPP_C_HEADER(cfloat)
       
    45 # else
       
    46 #ifdef __SYMBIAN32__
       
    47 #  include <float.h>
       
    48 #else
       
    49 # include _STLP_NATIVE_C_HEADER(float.h)
       
    50 #endif
       
    51 # endif
       
    52 #endif
       
    53 
       
    54 # if (_STLP_OUTERMOST_HEADER_ID == 0x106 )
       
    55 #  include <stl/_epilog.h>
       
    56 #  undef _STLP_OUTERMOST_HEADER_ID
       
    57 # endif
       
    58 
       
    59 #endif /* _STLP_CFLOAT */
       
    60 
       
    61 // Local Variables:
       
    62 // mode:C++
       
    63 // End: