epoc32/include/e32math.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of the License "Eclipse Public License v1.0"
williamr@2
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
// e32\include\e32math.h
williamr@2
    15
// 
williamr@2
    16
//
williamr@2
    17
williamr@2
    18
#ifndef __E32MATH_H__
williamr@2
    19
#define __E32MATH_H__
williamr@2
    20
#include <e32std.h>
williamr@2
    21
williamr@2
    22
williamr@2
    23
/**
williamr@2
    24
@publishedAll
williamr@2
    25
@released
williamr@2
    26
*/
williamr@2
    27
const TInt KMaxPrecision=15;
williamr@4
    28
williamr@2
    29
/**
williamr@2
    30
@publishedAll
williamr@2
    31
@released
williamr@4
    32
williamr@4
    33
This constant specifies the maximum number of significant digits available with floating 
williamr@4
    34
point computations. Rounding and string formatting methods will not use more digits than this.
williamr@2
    35
*/
williamr@2
    36
const TInt KPrecisionLimit=12;
williamr@4
    37
williamr@4
    38
/**
williamr@4
    39
@publishedAll
williamr@4
    40
@released
williamr@4
    41
williamr@4
    42
Let D be the set of real numbers exactly representable by an IEEE-754 'double'
williamr@4
    43
For any positive integer n let X_n be the set of real numbers with an exact
williamr@4
    44
decimal representation using n significant digits.
williamr@4
    45
Let r_n : D -> X_n be defined by r_n(x)=y such that
williamr@4
    46
|y-x| = inf { |z-x| : z in X_n }
williamr@4
    47
and (in the case where two such y exist) that the last significant digit in the
williamr@4
    48
decimal representation of y is even.
williamr@4
    49
This constant is the least n such that r_n is injective.
williamr@4
    50
*/
williamr@4
    51
const TInt KIEEEDoubleInjectivePrecision=17;
williamr@4
    52
williamr@2
    53
/**
williamr@2
    54
@publishedAll
williamr@2
    55
@released
williamr@2
    56
*/
williamr@2
    57
const TInt KMantissaBits=53;
williamr@2
    58
/**
williamr@2
    59
@publishedAll
williamr@2
    60
@released
williamr@2
    61
*/
williamr@2
    62
const TInt KMaxExponent=1023;
williamr@2
    63
/**
williamr@2
    64
@publishedAll
williamr@2
    65
@released
williamr@2
    66
*/
williamr@2
    67
const TInt KExponentBias=1022;
williamr@2
    68
/**
williamr@2
    69
@publishedAll
williamr@2
    70
@released
williamr@2
    71
*/
williamr@2
    72
const TInt KSpecialExponent=2047;
williamr@2
    73
//
williamr@2
    74
williamr@2
    75
williamr@2
    76
/**
williamr@2
    77
@publishedAll
williamr@2
    78
@released
williamr@2
    79
williamr@2
    80
The maximum exponent for a 32-bit floating point number.
williamr@2
    81
*/
williamr@2
    82
const TInt KTReal32MaxExponent=128;			// changed from 127
williamr@2
    83
williamr@2
    84
williamr@2
    85
/**
williamr@2
    86
@publishedAll
williamr@2
    87
@released
williamr@2
    88
williamr@2
    89
The minimum exponent for a 32-bit floating point number.
williamr@2
    90
*/
williamr@2
    91
const TInt KTReal32MinExponent=-125;
williamr@2
    92
/**
williamr@2
    93
@publishedAll
williamr@2
    94
@released
williamr@2
    95
*/
williamr@2
    96
const TInt KTReal32ExponentBias=126;
williamr@2
    97
/**
williamr@2
    98
@publishedAll
williamr@2
    99
@released
williamr@2
   100
*/
williamr@2
   101
const TInt KTReal32SpecialExponent=255;		// changed from KTReal32ExponentBad
williamr@2
   102
williamr@2
   103
williamr@2
   104
/**
williamr@2
   105
@publishedAll
williamr@2
   106
@released
williamr@2
   107
williamr@2
   108
A zero exponent value for a 32-bit floating point number. 
williamr@2
   109
*/
williamr@2
   110
const TInt KTReal32ZeroExponent=0;
williamr@2
   111
//
williamr@2
   112
williamr@2
   113
williamr@2
   114
/**
williamr@2
   115
@publishedAll
williamr@2
   116
@released
williamr@2
   117
williamr@2
   118
The maximum exponent for a 64-bit floating point number.
williamr@2
   119
*/
williamr@2
   120
const TInt KTReal64MaxExponent=1024;		// changed from 1023
williamr@2
   121
williamr@2
   122
williamr@2
   123
/**
williamr@2
   124
@publishedAll
williamr@2
   125
@released
williamr@2
   126
williamr@2
   127
The minimum exponent for a 64-bit floating point number.
williamr@2
   128
*/
williamr@2
   129
const TInt KTReal64MinExponent=-1021;
williamr@2
   130
williamr@2
   131
williamr@2
   132
/**
williamr@2
   133
@publishedAll
williamr@2
   134
@released
williamr@2
   135
*/
williamr@2
   136
const TInt KTReal64ExponentBias=1022;
williamr@2
   137
williamr@2
   138
williamr@2
   139
/**
williamr@2
   140
@publishedAll
williamr@2
   141
@released
williamr@2
   142
*/
williamr@2
   143
const TInt KTReal64SpecialExponent=2047;	// changed from KTReal64BadExponent
williamr@2
   144
williamr@2
   145
williamr@2
   146
/**
williamr@2
   147
@publishedAll
williamr@2
   148
@released
williamr@2
   149
williamr@2
   150
A zero exponent value for a 64-bit floating point number. 
williamr@2
   151
*/
williamr@2
   152
const TInt KTReal64ZeroExponent=0;
williamr@2
   153
//
williamr@2
   154
williamr@2
   155
williamr@2
   156
/**
williamr@2
   157
@publishedAll
williamr@2
   158
@released
williamr@2
   159
williamr@2
   160
The minimum value of a 64-bit floating point number.
williamr@2
   161
*/
williamr@2
   162
const TReal KMinTReal=2.2250738585072015E-308;	// changed from TReal64
williamr@2
   163
williamr@2
   164
williamr@2
   165
/**
williamr@2
   166
@publishedAll
williamr@2
   167
@released
williamr@2
   168
williamr@2
   169
The maximum value of a 64-bit floating point number.
williamr@2
   170
*/
williamr@2
   171
const TReal KMaxTReal=1.7976931348623157E+308;	//
williamr@2
   172
//
williamr@2
   173
williamr@2
   174
williamr@2
   175
/**
williamr@2
   176
@publishedAll
williamr@2
   177
@released
williamr@2
   178
williamr@2
   179
The minimum value of a 32-bit floating point number.
williamr@2
   180
*/
williamr@2
   181
const TReal32 KMinTReal32=1.17549435E-38f;
williamr@2
   182
williamr@2
   183
williamr@2
   184
/**
williamr@2
   185
@publishedAll
williamr@2
   186
@released
williamr@2
   187
williamr@2
   188
The maximum value of a 32-bit floating point number.
williamr@2
   189
*/
williamr@2
   190
const TReal32 KMaxTReal32=3.4028234663852885981170418348452e+38f;
williamr@2
   191
//
williamr@2
   192
williamr@2
   193
williamr@2
   194
/**
williamr@2
   195
@publishedAll
williamr@2
   196
@released
williamr@2
   197
williamr@2
   198
The minimum value of a 64-bit floating point number.
williamr@2
   199
*/
williamr@2
   200
const TReal64 KMinTReal64=2.2250738585072015E-308;
williamr@2
   201
williamr@2
   202
williamr@2
   203
/**
williamr@2
   204
@publishedAll
williamr@2
   205
@released
williamr@2
   206
williamr@2
   207
The maximum value of a 64-bit floating point number.
williamr@2
   208
*/
williamr@2
   209
const TReal64 KMaxTReal64=1.7976931348623157E+308;
williamr@2
   210
//
williamr@2
   211
williamr@2
   212
williamr@2
   213
/**
williamr@2
   214
@publishedAll
williamr@2
   215
@released
williamr@2
   216
*/
williamr@2
   217
const TReal KSqhf=0.70710678118654752440;
williamr@2
   218
williamr@2
   219
williamr@2
   220
/**
williamr@2
   221
@publishedAll
williamr@2
   222
@released
williamr@2
   223
williamr@2
   224
Log 2 to the base "e".
williamr@2
   225
*/
williamr@2
   226
const TReal KRln2=1.4426950408889634;
williamr@2
   227
williamr@2
   228
williamr@2
   229
/**
williamr@2
   230
@publishedAll
williamr@2
   231
@released
williamr@2
   232
williamr@2
   233
Log 10 to the base "e".
williamr@2
   234
*/
williamr@2
   235
const TReal KRln10=0.4342944819032518;
williamr@2
   236
williamr@2
   237
williamr@2
   238
/**
williamr@2
   239
@publishedAll
williamr@2
   240
@released
williamr@2
   241
williamr@2
   242
Log 2 to the base 10.
williamr@2
   243
*/
williamr@2
   244
const TReal KRlg2=0.3010299956639812;
williamr@2
   245
williamr@2
   246
williamr@2
   247
/**
williamr@2
   248
@publishedAll
williamr@2
   249
@released
williamr@2
   250
williamr@2
   251
The mathematical constant Pi.
williamr@2
   252
*/
williamr@2
   253
const TReal KPi=3.1415926535897932;
williamr@2
   254
williamr@2
   255
williamr@2
   256
/**
williamr@2
   257
@publishedAll
williamr@2
   258
@released
williamr@2
   259
williamr@2
   260
The reciprocal of the mathematical constant Pi. 
williamr@2
   261
*/
williamr@2
   262
const TReal KPiInv=0.3183098861837907;
williamr@2
   263
williamr@2
   264
williamr@2
   265
/**
williamr@2
   266
@publishedAll
williamr@2
   267
@released
williamr@2
   268
williamr@2
   269
The mathematical constant Pi divided by 2.
williamr@2
   270
*/
williamr@2
   271
const TReal KPiBy2=1.5707963267948966;
williamr@2
   272
williamr@2
   273
williamr@2
   274
/**
williamr@2
   275
@publishedAll
williamr@2
   276
@released
williamr@2
   277
williamr@2
   278
Not used.
williamr@2
   279
*/
williamr@2
   280
const TReal KDrpi=0.6366197723675813;
williamr@2
   281
williamr@2
   282
williamr@2
   283
/**
williamr@2
   284
@publishedAll
williamr@2
   285
@released
williamr@2
   286
williamr@2
   287
The square root of 3.
williamr@2
   288
*/
williamr@2
   289
const TReal KSqt3=1.7320508075688773;
williamr@2
   290
williamr@2
   291
williamr@2
   292
/**
williamr@2
   293
@publishedAll
williamr@2
   294
@released
williamr@2
   295
*/
williamr@2
   296
const TReal KMsq3=0.2679491924311227;
williamr@2
   297
williamr@2
   298
williamr@2
   299
/**
williamr@2
   300
@publishedAll
williamr@2
   301
@released
williamr@2
   302
williamr@2
   303
The multiplying factor to convert radians to degrees.
williamr@2
   304
*/
williamr@2
   305
const TReal KRadToDeg=57.29577951308232;
williamr@2
   306
williamr@2
   307
williamr@2
   308
/**
williamr@2
   309
@publishedAll
williamr@2
   310
@released
williamr@2
   311
williamr@2
   312
The multiplying factor to convert degrees to radians.
williamr@2
   313
*/
williamr@2
   314
const TReal KDegToRad=0.017453292519943296;
williamr@2
   315
williamr@2
   316
williamr@2
   317
williamr@2
   318
williamr@2
   319
class TRealX
williamr@2
   320
/**
williamr@2
   321
@publishedAll
williamr@2
   322
@released
williamr@2
   323
williamr@2
   324
A class encapsulating an extended precision real value.
williamr@2
   325
williamr@2
   326
This class provides 64 bit precision and a dynamic range of approximately
williamr@2
   327
1E-9863 to 1E+9863. All member functions are optimized for speed.
williamr@2
   328
*/
williamr@2
   329
	{
williamr@2
   330
public:
williamr@2
   331
	enum TRealXOrder {ELessThan=1,EEqual=2,EGreaterThan=4,EUnordered=8};
williamr@2
   332
public:
williamr@2
   333
	IMPORT_C TRealX();
williamr@2
   334
	IMPORT_C TRealX(TInt aInt);
williamr@2
   335
	IMPORT_C TRealX(TUint aInt);
williamr@2
   336
	IMPORT_C TRealX(TUint aExp, TUint aMantHi, TUint aMantLo);
williamr@2
   337
	IMPORT_C TRealX(const TInt64 &aInt);
williamr@2
   338
	IMPORT_C TRealX(TReal32 aReal) __SOFTFP;
williamr@2
   339
	IMPORT_C TRealX(TReal64 aReal) __SOFTFP;
williamr@2
   340
	IMPORT_C TRealX &operator=(TInt aInt);
williamr@2
   341
	IMPORT_C TRealX &operator=(TUint aInt);
williamr@2
   342
	IMPORT_C TRealX &operator=(const TInt64& aInt);
williamr@2
   343
	IMPORT_C TRealX &operator=(TReal32 aReal) __SOFTFP;
williamr@2
   344
	IMPORT_C TRealX &operator=(TReal64 aReal) __SOFTFP;
williamr@2
   345
	IMPORT_C TInt Set(TInt aInt);
williamr@2
   346
	IMPORT_C TInt Set(TUint aInt);
williamr@2
   347
	IMPORT_C TInt Set(const TInt64& aInt);
williamr@2
   348
	IMPORT_C TInt Set(TReal32 aReal) __SOFTFP;
williamr@2
   349
	IMPORT_C TInt Set(TReal64 aReal) __SOFTFP;
williamr@2
   350
	IMPORT_C operator TInt() const;
williamr@2
   351
	IMPORT_C operator TUint() const;
williamr@2
   352
	IMPORT_C operator TInt64() const;
williamr@2
   353
	IMPORT_C operator TReal32() const __SOFTFP;
williamr@2
   354
	IMPORT_C operator TReal64() const __SOFTFP;
williamr@2
   355
	IMPORT_C TInt GetTReal(TReal32 &aVal) const;
williamr@2
   356
	IMPORT_C TInt GetTReal(TReal64 &aVal) const;
williamr@2
   357
	IMPORT_C void SetZero(TBool aNegative=EFalse);
williamr@2
   358
	IMPORT_C void SetNaN();
williamr@2
   359
	IMPORT_C void SetInfinite(TBool aNegative);
williamr@2
   360
	IMPORT_C TBool IsZero() const;
williamr@2
   361
	IMPORT_C TBool IsNaN() const;
williamr@2
   362
	IMPORT_C TBool IsInfinite() const;
williamr@2
   363
	IMPORT_C TBool IsFinite() const;
williamr@2
   364
	IMPORT_C const TRealX &operator+=(const TRealX &aVal);
williamr@2
   365
	IMPORT_C const TRealX &operator-=(const TRealX &aVal);
williamr@2
   366
	IMPORT_C const TRealX &operator*=(const TRealX &aVal);
williamr@2
   367
	IMPORT_C const TRealX &operator/=(const TRealX &aVal);
williamr@2
   368
	IMPORT_C const TRealX &operator%=(const TRealX &aVal);
williamr@2
   369
	IMPORT_C TInt AddEq(const TRealX &aVal);
williamr@2
   370
	IMPORT_C TInt SubEq(const TRealX &aVal);
williamr@2
   371
	IMPORT_C TInt MultEq(const TRealX &aVal);
williamr@2
   372
	IMPORT_C TInt DivEq(const TRealX &aVal);
williamr@2
   373
	IMPORT_C TInt ModEq(const TRealX &aVal);
williamr@2
   374
	IMPORT_C TRealX operator+() const;
williamr@2
   375
	IMPORT_C TRealX operator-() const;
williamr@2
   376
	IMPORT_C TRealX &operator++();
williamr@2
   377
	IMPORT_C TRealX operator++(TInt);
williamr@2
   378
	IMPORT_C TRealX &operator--();
williamr@2
   379
	IMPORT_C TRealX operator--(TInt);
williamr@2
   380
	IMPORT_C TRealX operator+(const TRealX &aVal) const;
williamr@2
   381
	IMPORT_C TRealX operator-(const TRealX &aVal) const;
williamr@2
   382
	IMPORT_C TRealX operator*(const TRealX &aVal) const;
williamr@2
   383
	IMPORT_C TRealX operator/(const TRealX &aVal) const;
williamr@2
   384
	IMPORT_C TRealX operator%(const TRealX &aVal) const;
williamr@2
   385
	IMPORT_C TInt Add(TRealX& aResult,const TRealX &aVal) const;
williamr@2
   386
	IMPORT_C TInt Sub(TRealX& aResult,const TRealX &aVal) const;
williamr@2
   387
	IMPORT_C TInt Mult(TRealX& aResult,const TRealX &aVal) const;
williamr@2
   388
	IMPORT_C TInt Div(TRealX& aResult,const TRealX &aVal) const;
williamr@2
   389
	IMPORT_C TInt Mod(TRealX& aResult,const TRealX &aVal) const;
williamr@2
   390
	IMPORT_C TRealXOrder Compare(const TRealX& aVal) const;
williamr@2
   391
	inline TBool operator==(const TRealX &aVal) const;
williamr@2
   392
	inline TBool operator!=(const TRealX &aVal) const;
williamr@2
   393
	inline TBool operator>=(const TRealX &aVal) const;
williamr@2
   394
	inline TBool operator<=(const TRealX &aVal) const;
williamr@2
   395
	inline TBool operator>(const TRealX &aVal) const;
williamr@2
   396
	inline TBool operator<(const TRealX &aVal) const;
williamr@2
   397
public:
williamr@2
   398
    /**
williamr@2
   399
	The mantissa.
williamr@2
   400
	*/
williamr@2
   401
	// Represented as two adjacent 32 bit values, rather than one 64 value.
williamr@2
   402
	// This is to avoid EABI introduced padding overheads and BC breakages. 
williamr@2
   403
	// This representation works because the mantissa is always accessed from
williamr@2
   404
	// assembler code as two 32 bit quantities. The C++ code that accesses it
williamr@2
   405
	// now constructs an automatic TInt64 with the two components.
williamr@2
   406
	TUint32 iMantLo;
williamr@2
   407
	TUint32 iMantHi;
williamr@2
   408
	
williamr@2
   409
	/**
williamr@2
   410
	The sign: 0 for +, 1 for -
williamr@2
   411
	*/
williamr@2
   412
	TInt8 iSign;	
williamr@2
   413
	
williamr@2
   414
	/**
williamr@2
   415
	Flags: 0 for exact, 1 for rounded down, 2 for rounded up
williamr@2
   416
	*/ 
williamr@2
   417
	TUint8 iFlag;
williamr@2
   418
	
williamr@2
   419
	/**
williamr@2
   420
	Exponent: biased by 32767, iExp=0 => zero, +65535 => infinity or NaN
williamr@2
   421
	*/
williamr@2
   422
	TUint16 iExp;
williamr@2
   423
	};
williamr@2
   424
williamr@2
   425
williamr@2
   426
williamr@2
   427
williamr@2
   428
struct SPoly
williamr@2
   429
/**
williamr@2
   430
@publishedAll
williamr@2
   431
@released
williamr@2
   432
williamr@2
   433
A structure containing the set of coefficients for a polynomial.
williamr@2
   434
williamr@2
   435
@see Math::Poly
williamr@2
   436
*/
williamr@2
   437
    {
williamr@2
   438
    TInt num;
williamr@2
   439
	TReal c[1];
williamr@2
   440
    };
williamr@2
   441
williamr@2
   442
williamr@2
   443
williamr@2
   444
williamr@2
   445
class Math
williamr@2
   446
/**
williamr@2
   447
@publishedAll
williamr@2
   448
@released
williamr@2
   449
williamr@2
   450
A collection of mathematical functions.
williamr@2
   451
*/
williamr@2
   452
	{
williamr@2
   453
public:
williamr@2
   454
	IMPORT_C static TInt ACos(TReal &aTrg,const TReal &aSrc);
williamr@2
   455
	IMPORT_C static TInt ASin(TReal &aTrg,const TReal &aSrc);
williamr@2
   456
	IMPORT_C static TInt ATan(TReal &aTrg,const TReal &aSrc);
williamr@2
   457
	IMPORT_C static TInt ATan(TReal &aTrg,const TReal &aSrcY,const TReal &aSrcX);
williamr@2
   458
	IMPORT_C static TInt Cos(TReal &aTrg,const TReal &aSrc);
williamr@2
   459
	
williamr@2
   460
	/**
williamr@2
   461
	This function is not implemented by Symbian OS.
williamr@2
   462
	*/
williamr@2
   463
	IMPORT_C static TInt DtoR(TReal &aTrg,const TDesC &aSrc,TInt &aPos,const TChar aPoint);
williamr@2
   464
	IMPORT_C static TInt Exp(TReal &aTrg,const TReal &aSrc);
williamr@2
   465
	IMPORT_C static TInt Frac(TReal &aTrg,const TReal &aSrc);
williamr@2
   466
	IMPORT_C static TInt Int(TReal &aTrg,const TReal &aSrc);
williamr@2
   467
	IMPORT_C static TInt Int(TInt16 &aTrg,const TReal &aSrc);
williamr@2
   468
	IMPORT_C static TInt Int(TInt32 &aTrg,const TReal &aSrc);
williamr@2
   469
	IMPORT_C static TInt Log(TReal &aTrg,const TReal &aSrc);
williamr@2
   470
	IMPORT_C static TInt Ln(TReal &aTrg,const TReal &aSrc);
williamr@2
   471
	IMPORT_C static TInt Mod(TReal &aTrg,const TReal &aSrc,const TReal &aModulus);
williamr@2
   472
	IMPORT_C static TReal Poly(TReal aVal,const SPoly *aPoly) __SOFTFP;
williamr@2
   473
	IMPORT_C static TInt Pow(TReal &aTrg,const TReal &aSrc,const TReal &aPower);
williamr@2
   474
	IMPORT_C static TInt Pow10(TReal &aTrg,const TInt exp);
williamr@2
   475
	IMPORT_C static TInt Rand(TInt64 &aSeed);
williamr@2
   476
	IMPORT_C static TReal FRand(TInt64 &aSeed) __SOFTFP;
williamr@2
   477
	IMPORT_C static TUint32 Random();
williamr@4
   478
	IMPORT_C static void Random(TDes8& aRandomValue);
williamr@4
   479
	IMPORT_C static void RandomL(TDes8& aRandomValue);
williamr@4
   480
	IMPORT_C static TUint32 RandomL();
williamr@2
   481
	IMPORT_C static TInt Round(TReal &aTrg,const TReal &aSrc,TInt aDecimalPlaces);
williamr@2
   482
	IMPORT_C static TInt Sin(TReal &aTrg,const TReal &aSrc); 
williamr@2
   483
	IMPORT_C static TInt Sqrt(TReal &aTrg,const TReal &aSrc);
williamr@2
   484
	IMPORT_C static TInt Tan(TReal &aTrg,const TReal &aSrc);
williamr@2
   485
	IMPORT_C static TBool IsZero(const TReal &aVal);
williamr@2
   486
	IMPORT_C static TBool IsNaN(const TReal &aVal);
williamr@2
   487
	IMPORT_C static TBool IsInfinite(const TReal &aVal);
williamr@2
   488
	IMPORT_C static TBool IsFinite(const TReal &aVal);
williamr@2
   489
	IMPORT_C static void PolyX(TRealX& aY, const TRealX& aX, TInt aDeg, const TRealX *aCoef);
williamr@2
   490
	static TInt MultPow10X(TRealX& aTrg, TInt aPower);
williamr@2
   491
	IMPORT_C static void Mul64(Int64 aX, Int64 aY, Int64& aOutH, Uint64& aOutL);
williamr@2
   492
	IMPORT_C static void UMul64(Uint64 aX, Uint64 aY, Uint64& aOutH, Uint64& aOutL);
williamr@2
   493
	IMPORT_C static Int64 DivMod64(Int64 aDividend, Int64 aDivisor, Int64& aRemainder);
williamr@2
   494
	IMPORT_C static Uint64 UDivMod64(Uint64 aDividend, Uint64 aDivisor, Uint64& aRemainder);
williamr@2
   495
private:
williamr@2
   496
	IMPORT_C static void SetZero(TReal &aVal,TInt aSign=0);
williamr@2
   497
	IMPORT_C static void SetNaN(TReal &aVal);
williamr@2
   498
	IMPORT_C static void SetInfinite(TReal &aVal,TInt aSign);
williamr@2
   499
	};
williamr@2
   500
williamr@2
   501
#include <e32math.inl>
williamr@2
   502
williamr@2
   503
#endif // __E32MATH_H__