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