webengine/wmlengine/src/utils/include/nwx_math.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 1999 - 2001 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /***************************************************************************
       
    20 **   File: nwx_math.h
       
    21 **   Purpose:  Provides the interface to platform-independent math functions
       
    22 **************************************************************************/
       
    23 
       
    24 #ifndef NWX_MATH_H
       
    25 #define NWX_MATH_H
       
    26 
       
    27 #ifdef __cplusplus
       
    28 extern "C" {
       
    29 #endif
       
    30 
       
    31 /*
       
    32 ** Includes
       
    33 */
       
    34 
       
    35 #include "nwx_defs.h"
       
    36 
       
    37 /*
       
    38 ** Type Declarations
       
    39 */
       
    40 
       
    41 /*
       
    42 ** Global Function Declarations
       
    43 */
       
    44 extern void Math_ContextFree();
       
    45 
       
    46 extern NW_Float32 NW_Math_powint(NW_Float32 x, NW_Int32 ex);
       
    47 
       
    48 extern NW_Float64 NW_Math_powint64(NW_Float32 x, NW_Int32 ex);
       
    49 
       
    50 extern NW_Int32 NW_Math_rand();
       
    51 
       
    52 extern void NW_Math_srand(NW_Int32 seed);
       
    53 
       
    54 extern NW_Float32 NW_Math_floor(NW_Float32 x);
       
    55 
       
    56 extern NW_Float32 NW_Math_ceil(NW_Float32 x);
       
    57 
       
    58 extern NW_Int32 NW_Math_truncate(NW_Float32 x);
       
    59 
       
    60 extern NW_Int32 NW_Math_abs(NW_Int32 x);
       
    61 
       
    62 extern NW_Float32 NW_Math_fabs(NW_Float32 x);
       
    63 
       
    64 extern NW_Float32 NW_Math_pow(NW_Float32 x, NW_Float32 pow);
       
    65 
       
    66 extern void NW_Math_BaseandExp64(NW_Float64 x, NW_Int32 *base, NW_Int32 *exp);
       
    67 
       
    68 extern NW_Float32 NW_Math_round(NW_Float32 x);
       
    69 
       
    70 
       
    71 #ifdef __cplusplus
       
    72 } /* extern "C" */
       
    73 #endif
       
    74 
       
    75 #endif /* NWX_MATH_H */