svgtopt/gfx2d/inc/Gfxmath.h
changeset 0 d46562c3d99d
equal deleted inserted replaced
-1:000000000000 0:d46562c3d99d
       
     1 /*
       
     2 * Copyright (c) 2003 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 "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:      Math function header
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef GFXMATH_H
       
    19 #define GFXMATH_H
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #include "e32def.h"
       
    25 
       
    26 /*define this to make all math to use floating point (otherwise uses 16:16 fixed point)*/
       
    27 
       
    28 //#define SVG_FLOAT_BUILD
       
    29 
       
    30 
       
    31 typedef signed   __int64 svgInt64;
       
    32 typedef unsigned __int64 svgUint64;
       
    33 
       
    34 float svgFixedToFloat(int x);
       
    35 int svgScalarFromFloat(float f);
       
    36 
       
    37 int svgScalarMul(int r1, int r2);
       
    38 int svgScalarDiv(int x, int y);
       
    39 
       
    40 
       
    41 #endif /*GFXMATH_H*/