sl@0: // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // f32test\math\t_math.h sl@0: // Copy of e32\umath\um_std.h for E32\TMATH directory sl@0: // sl@0: // sl@0: sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: struct SReal32 sl@0: { sl@0: unsigned man:23; sl@0: unsigned exp:8; sl@0: unsigned sign:1; sl@0: }; sl@0: sl@0: #if defined(__DOUBLE_WORDS_SWAPPED__) sl@0: struct SReal64 sl@0: { sl@0: unsigned msm:20; sl@0: unsigned exp:11; sl@0: unsigned sign:1; sl@0: TUint lsm; sl@0: }; sl@0: #define DVAL(m0,m1,m2,m3,e) {(TUint)((m0<<16)|m1),e+KExponentBias,0,(TUint)((m2<<16)|m3)} sl@0: #else sl@0: struct SReal64 sl@0: { sl@0: TUint lsm; sl@0: unsigned msm:20; sl@0: unsigned exp:11; sl@0: unsigned sign:1; sl@0: }; sl@0: #define DVAL(m0,m1,m2,m3,e) {(TUint)((m2<<16)|m3),(TUint)((m0<<16)|m1),e+KExponentBias,0} sl@0: #endif sl@0: sl@0: enum TMathPanic sl@0: { sl@0: EMathDivideByZero, sl@0: EMathOverflow, sl@0: EMathUnderflow, sl@0: EMathBadOperand, sl@0: EMathUnknownError sl@0: }; sl@0: sl@0: GLREF_C void Panic(TMathPanic aPanic);