Trying to figure out how to implement my WINC like compatibility layer. Going the emulation way is probably not so smart. We should not use the kernel but rather hook native functions in the Exec calls.
// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "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:
// e32test\math\t_real32.h
// Generated by \E32\TMATH\T_GEN32.MAK
//
//
#include <e32std.h>
#include "t_vals.h"
const TInt32x addArray[] =
{
TInt32x(0x7f7fffff),
TInt32x(0x0),
TInt32x(0xff7fffff),
TInt32x(0xfeffffff),
TInt32x(0x81000000),
TInt32x(0x0),
TInt32x(0x1000000),
TInt32x(0x1400000),
TInt32x(0x800000),
TInt32x(0x80800000),
TInt32x(0x0),
TInt32x(0x7f7fffff),
TInt32x(0x0),
TInt32x(0xff7fffff),
TInt32x(0x3f800000),
TInt32x(0x403ffb16),
TInt32x(0x407ffb16),
TInt32x(0x37fc0000),
TInt32x(0xc07fff82),
TInt32x(0xbffc3e6c),
TInt32x(0x3d7064ed),
TInt32x(0x7e1f688a),
TInt32x(0x7e9f688a),
TInt32x(0x7e1f68cf),
TInt32x(0x76092f7d),
TInt32x(0x0),
TInt32x(0xf6092f7d),
TInt32x(0xf5892f63),
TInt32x(0x0),
TInt32x(0xec4cad75),
TInt32x(0x3129b2d9),
TInt32x(0x30a9b3f9),
TInt32x(0x0),
TInt32x(0xa9100c44),
TInt32x(0x2025098a),
TInt32x(0x7e1f688a),
TInt32x(0x7e9f688a),
TInt32x(0x7e1f688a),
TInt32x(0x710c7a5b),
TInt32x(0x0),
TInt32x(0xf10c7a5b),
TInt32x(0xf08c7a5b),
TInt32x(0x0),
TInt32x(0xe4062333),
TInt32x(0x37cf26d2),
TInt32x(0x374f26d2),
TInt32x(0x2b340f88),
TInt32x(0x2ab40f88),
TInt32x(0x1cd33f69),
};
const TInt32x subArray[] =
{
TInt32x(0x7f7fffff),
TInt32x(0xfeffffff),
TInt32x(0x0),
TInt32x(0xff7fffff),
TInt32x(0x0),
TInt32x(0x7f7fffff),
TInt32x(0x69845951),
TInt32x(0x7f7fffff),
TInt32x(0x0),
TInt32x(0xff7fffff),
TInt32x(0x0),
TInt32x(0x1000000),
TInt32x(0x0),
TInt32x(0x80800000),
TInt32x(0x0),
TInt32x(0x81000000),
TInt32x(0x800000),
TInt32x(0x1400000),
TInt32x(0x80800000),
TInt32x(0xbf800000),
TInt32x(0xc0600000),
TInt32x(0x40200002),
TInt32x(0xb4c00000),
TInt32x(0x407ffffe),
TInt32x(0x34c00000),
TInt32x(0xc001e0ca),
TInt32x(0x0),
TInt32x(0xfe1f688a),
TInt32x(0x0),
TInt32x(0x7e1f6845),
TInt32x(0x0),
TInt32x(0x76092f7d),
TInt32x(0x0),
TInt32x(0xf589307d),
TInt32x(0x6e7fd8d3),
TInt32x(0xedffd8d3),
TInt32x(0x0),
TInt32x(0x30a9b1b9),
TInt32x(0x29900c6d),
TInt32x(0xa9100c96),
TInt32x(0x2025098a),
TInt32x(0xfe1f688a),
TInt32x(0x0),
TInt32x(0x7e1f688a),
TInt32x(0x0),
TInt32x(0x710c7a5b),
TInt32x(0x0),
TInt32x(0xf08c7a5b),
TInt32x(0x64862333),
TInt32x(0xe4062333),
TInt32x(0x0),
TInt32x(0x374f26d2),
TInt32x(0x0),
TInt32x(0x2ab40f88),
TInt32x(0x1cd33f69),
};
const TInt32x multArray[] =
{
TInt32x(0x3f800000),
TInt32x(0x0),
TInt32x(0x0),
TInt32x(0x0),
TInt32x(0x7f7ffffa),
TInt32x(0xff7ffffa),
TInt32x(0x7f7ffffa),
TInt32x(0xbffffffd),
TInt32x(0x800000),
TInt32x(0x80800000),
TInt32x(0x800000),
TInt32x(0xa0000000),
TInt32x(0x7f7fffff),
TInt32x(0x0),
TInt32x(0x0),
TInt32x(0x800000),
TInt32x(0x40900000),
TInt32x(0x1900000),
TInt32x(0x407fffff),
TInt32x(0x7f7fffff),
TInt32x(0x3f7ffffb),
TInt32x(0xbf7ffffb),
TInt32x(0x3f7ffffb),
TInt32x(0xbcf064e8),
TInt32x(0x3a61bd64),
TInt32x(0x5bb54d42),
TInt32x(0x7d119c93),
TInt32x(0xfd119c93),
TInt32x(0x7d119c93),
TInt32x(0x5e3f1829),
TInt32x(0x3f7ac8b1),
TInt32x(0x7c1c30a0),
TInt32x(0x412bdf41),
TInt32x(0x99855f7f),
TInt32x(0x418da1ca),
TInt32x(0xdf19d151),
TInt32x(0xc0de0cc0),
TInt32x(0x17825417),
TInt32x(0x7c57171b),
TInt32x(0x6bb8c2d9),
TInt32x(0x4be040b),
TInt32x(0x21302c4c),
TInt32x(0x7d49f701),
TInt32x(0x55742918),
TInt32x(0x5b26ba6),
};
const TInt32x divArray[] =
{
TInt32x(0x0),
TInt32x(0x3f800000),
TInt32x(0xbf800000),
TInt32x(0x3f800000),
TInt32x(0xfe7fffff),
TInt32x(0x800001),
TInt32x(0x0),
TInt32x(0xfe800000),
TInt32x(0x80800000),
TInt32x(0x7e800000),
TInt32x(0x3f800000),
TInt32x(0xbf800000),
TInt32x(0x3f800000),
TInt32x(0x0),
TInt32x(0x3f800000),
TInt32x(0x3f800003),
TInt32x(0xbf7ffffb),
TInt32x(0x3f800003),
TInt32x(0xbf7ffffb),
TInt32x(0xbf800000),
TInt32x(0xc2084f36),
TInt32x(0x3f800000),
TInt32x(0x78094f89),
TInt32x(0x3f800000),
TInt32x(0x84626985),
TInt32x(0x3f800000),
TInt32x(0x9f0662a4),
TInt32x(0x3f800000),
TInt32x(0x72fc6f7d),
TInt32x(0x3f800000),
TInt32x(0xa343c181),
TInt32x(0x3f800000),
TInt32x(0x29e12e14),
TInt32x(0x7b4097ce),
TInt32x(0x9abc5661),
TInt32x(0x4cbebc20),
TInt32x(0xb22bcc77),
TInt32x(0x4cbebc20),
TInt32x(0x2f2f9fe4),
TInt32x(0xd368d4a5),
TInt32x(0x38acc869),
TInt32x(0x442ab6c),
TInt32x(0x7409e492),
TInt32x(0x7bdc5bb2),
TInt32x(0x1bc5b16e),
TInt32x(0x3b9117e),
TInt32x(0x5008fe22),
TInt32x(0x7b517d6c),
};
const TInt32x unaryArray[] =
{
TInt32x(0x80000000),
TInt32x(0xbf800000),
TInt32x(0x3f800000),
TInt32x(0xff7fffff),
TInt32x(0x7f7fffff),
TInt32x(0x80800000),
TInt32x(0x800000),
};
const TInt32x preIncArray1[] =
{
TInt32x(0x0),
TInt32x(0x3f800000),
TInt32x(0x40000000),
TInt32x(0xc4d0f83f),
TInt32x(0x44c9ba46),
TInt32x(0x7f7fffff),
TInt32x(0xff7fffff),
TInt32x(0x3f800000),
TInt32x(0x3f800000),
TInt32x(0x584ca2e5),
TInt32x(0xd84ca2e5),
TInt32x(0x3f800000),
TInt32x(0x3f800000),
TInt32x(0x5b9fdf43),
TInt32x(0xdb9fdf43),
TInt32x(0x3f800000),
TInt32x(0x3f800000),
};
const TInt32x preIncArray2[] =
{
TInt32x(0x3f800000),
TInt32x(0x40000000),
TInt32x(0x40400000),
TInt32x(0xc4d0d83f),
TInt32x(0x44c9da46),
TInt32x(0x7f7fffff),
TInt32x(0xff7fffff),
TInt32x(0x40000000),
TInt32x(0x40000000),
TInt32x(0x584ca2e5),
TInt32x(0xd84ca2e5),
TInt32x(0x40000000),
TInt32x(0x40000000),
TInt32x(0x5b9fdf43),
TInt32x(0xdb9fdf43),
TInt32x(0x40000000),
TInt32x(0x40000000),
};
const TInt32x preDecArray1[] =
{
TInt32x(0xc0000000),
TInt32x(0xbf800000),
TInt32x(0x0),
TInt32x(0xc4d1383f),
TInt32x(0x44c97a46),
TInt32x(0x7f7fffff),
TInt32x(0xff7fffff),
TInt32x(0xbf800000),
TInt32x(0xbf800000),
TInt32x(0x584ca2e5),
TInt32x(0xd84ca2e5),
TInt32x(0xbf800000),
TInt32x(0xbf800000),
TInt32x(0x5b9fdf43),
TInt32x(0xdb9fdf43),
TInt32x(0xbf800000),
TInt32x(0xbf800000),
};
const TInt32x preDecArray2[] =
{
TInt32x(0xc0400000),
TInt32x(0xc0000000),
TInt32x(0xbf800000),
TInt32x(0xc4d1583f),
TInt32x(0x44c95a46),
TInt32x(0x7f7fffff),
TInt32x(0xff7fffff),
TInt32x(0xc0000000),
TInt32x(0xc0000000),
TInt32x(0x584ca2e5),
TInt32x(0xd84ca2e5),
TInt32x(0xc0000000),
TInt32x(0xc0000000),
TInt32x(0x5b9fdf43),
TInt32x(0xdb9fdf43),
TInt32x(0xc0000000),
TInt32x(0xc0000000),
};
const TInt32x postIncArray1[] =
{
TInt32x(0x0),
TInt32x(0x3f800000),
TInt32x(0x40000000),
TInt32x(0xc4d0f83f),
TInt32x(0x44c9ba46),
TInt32x(0x7f7fffff),
TInt32x(0xff7fffff),
TInt32x(0x3f800000),
TInt32x(0x3f800000),
TInt32x(0x584ca2e5),
TInt32x(0xd84ca2e5),
TInt32x(0x3f800000),
TInt32x(0x3f800000),
TInt32x(0x5b9fdf43),
TInt32x(0xdb9fdf43),
TInt32x(0x3f800000),
TInt32x(0x3f800000),
};
const TInt32x postIncArray2[] =
{
TInt32x(0x3f800000),
TInt32x(0x40000000),
TInt32x(0x40400000),
TInt32x(0xc4d0d83f),
TInt32x(0x44c9da46),
TInt32x(0x7f7fffff),
TInt32x(0xff7fffff),
TInt32x(0x40000000),
TInt32x(0x40000000),
TInt32x(0x584ca2e5),
TInt32x(0xd84ca2e5),
TInt32x(0x40000000),
TInt32x(0x40000000),
TInt32x(0x5b9fdf43),
TInt32x(0xdb9fdf43),
TInt32x(0x40000000),
TInt32x(0x40000000),
};
const TInt32x postDecArray1[] =
{
TInt32x(0xc0000000),
TInt32x(0xbf800000),
TInt32x(0x0),
TInt32x(0xc4d1383f),
TInt32x(0x44c97a46),
TInt32x(0x7f7fffff),
TInt32x(0xff7fffff),
TInt32x(0xbf800000),
TInt32x(0xbf800000),
TInt32x(0x584ca2e5),
TInt32x(0xd84ca2e5),
TInt32x(0xbf800000),
TInt32x(0xbf800000),
TInt32x(0x5b9fdf43),
TInt32x(0xdb9fdf43),
TInt32x(0xbf800000),
TInt32x(0xbf800000),
};
const TInt32x postDecArray2[] =
{
TInt32x(0xc0400000),
TInt32x(0xc0000000),
TInt32x(0xbf800000),
TInt32x(0xc4d1583f),
TInt32x(0x44c95a46),
TInt32x(0x7f7fffff),
TInt32x(0xff7fffff),
TInt32x(0xc0000000),
TInt32x(0xc0000000),
TInt32x(0x584ca2e5),
TInt32x(0xd84ca2e5),
TInt32x(0xc0000000),
TInt32x(0xc0000000),
TInt32x(0x5b9fdf43),
TInt32x(0xdb9fdf43),
TInt32x(0xc0000000),
TInt32x(0xc0000000),
};