0
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "ARM EABI LICENCE.txt"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// in kernel/eka/compsupp.
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Thunks for RVCT synonyms for AEABI functions
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
extern "C" double __aeabi_l2d(long long val);
|
|
19 |
extern "C" double __aeabi_ul2d(unsigned long long val);
|
|
20 |
extern "C" long long __aeabi_d2lz(double val);
|
|
21 |
extern "C" unsigned long long __aeabi_d2ulz(double val);
|
|
22 |
extern "C" float __aeabi_l2f(long long val);
|
|
23 |
extern "C" float __aeabi_ul2f(unsigned long long val);
|
|
24 |
extern "C" long long __aeabi_f2lz(float val);
|
|
25 |
extern "C" unsigned long long __aeabi_f2ulz(float val);
|
|
26 |
|
|
27 |
extern "C"
|
|
28 |
{
|
|
29 |
|
|
30 |
__declspec(dllexport) double _ll_sto_d(long long val)
|
|
31 |
{
|
|
32 |
return __aeabi_l2d(val);
|
|
33 |
}
|
|
34 |
|
|
35 |
__declspec(dllexport) double _ll_usto_d(unsigned long long val)
|
|
36 |
{
|
|
37 |
return __aeabi_ul2d(val);
|
|
38 |
}
|
|
39 |
|
|
40 |
__declspec(dllexport) long long _ll_sfrom_d(double val)
|
|
41 |
{
|
|
42 |
return __aeabi_d2lz(val);
|
|
43 |
}
|
|
44 |
|
|
45 |
__declspec(dllexport) unsigned long long _ll_usfrom_d(double val)
|
|
46 |
{
|
|
47 |
return __aeabi_d2ulz(val);
|
|
48 |
}
|
|
49 |
|
|
50 |
__declspec(dllexport) float _ll_sto_f(long long val)
|
|
51 |
{
|
|
52 |
return __aeabi_l2d(val);
|
|
53 |
}
|
|
54 |
|
|
55 |
__declspec(dllexport) float _ll_usto_f(unsigned long long val)
|
|
56 |
{
|
|
57 |
return __aeabi_ul2d(val);
|
|
58 |
}
|
|
59 |
|
|
60 |
__declspec(dllexport) long long _ll_sfrom_f(float val)
|
|
61 |
{
|
|
62 |
return __aeabi_d2lz(val);
|
|
63 |
}
|
|
64 |
|
|
65 |
__declspec(dllexport) unsigned long long _ll_usfrom_f(float val)
|
|
66 |
{
|
|
67 |
return __aeabi_d2ulz(val);
|
|
68 |
}
|
|
69 |
|
|
70 |
};
|