epoc32/include/libc/math.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 /*
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 
       
    18 
       
    19 
       
    20 
    17 
    21 
    18 
    22 
    19 
    23 /**
    20 /**
    24  @file
    21  @file
    31 extern "C" {
    28 extern "C" {
    32 #endif
    29 #endif
    33 #define  _MATH_H
    30 #define  _MATH_H
    34 
    31 
    35 #include <sys/reent.h>
    32 #include <sys/reent.h>
    36 #include <machine/ieeefp.h>
    33 #include <libc/machine/ieeefp.h>
    37 #include "_ansi.h"
    34 #include <_ansi.h>
    38 
    35 
    39 void MapSymbianErrorCodeToErrno(int, int);
    36 void MapSymbianErrorCodeToErrno(int, int);
    40    
    37    
    41 /**
    38 /**
    42 Reentrant ANSI C functions
    39 Reentrant ANSI C functions
    79 IMPORT_C int	isnan	(double) __SOFTFP;
    76 IMPORT_C int	isnan	(double) __SOFTFP;
    80 IMPORT_C int	isinf	(double) __SOFTFP;
    77 IMPORT_C int	isinf	(double) __SOFTFP;
    81 IMPORT_C double	rint	(double) __SOFTFP;
    78 IMPORT_C double	rint	(double) __SOFTFP;
    82 IMPORT_C double	scalbn	(double, int) __SOFTFP;
    79 IMPORT_C double	scalbn	(double, int) __SOFTFP;
    83 
    80 
    84 /* 
    81 
       
    82 /**
       
    83 WARNING: For internal use ONLY. Compatibility is not guaranteed in future releases.
    85 strtod, atof, etc. may return HUGE_VAL 
    84 strtod, atof, etc. may return HUGE_VAL 
    86 @internalComponent
    85 @internalComponent
    87 */
    86 */
    88 #define	HUGE_VAL	1.7976931348623157E+308 /* KMaxTReal from e32math.h */
    87 #define	HUGE_VAL	1.7976931348623157E+308 /* KMaxTReal from e32math.h */
       
    88 
    89 
    89 
    90 #ifndef _STRICT_ANSI
    90 #ifndef _STRICT_ANSI
    91 
    91 
    92 /**
    92 /**
    93 Non ANSI double precision functions.  
    93 Non ANSI double precision functions.