svgtopt/gfx2d/inc/Gfxmath.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:06:58 +0300
branchRCL_3
changeset 17 db5c883ad1c5
parent 0 d46562c3d99d
permissions -rw-r--r--
Revision: 201026 Kit: 201035

/*
* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:      Math function header
 *
*/

#ifndef GFXMATH_H
#define GFXMATH_H




#include "e32def.h"

/*define this to make all math to use floating point (otherwise uses 16:16 fixed point)*/

//#define SVG_FLOAT_BUILD


typedef signed   __int64 svgInt64;
typedef unsigned __int64 svgUint64;

float svgFixedToFloat(int x);
int svgScalarFromFloat(float f);

int svgScalarMul(int r1, int r2);
int svgScalarDiv(int x, int y);


#endif /*GFXMATH_H*/