os/kernelhwsrv/kernel/eka/compsupp/rvct/dfprvct-thunk.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/compsupp/rvct/dfprvct-thunk.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,71 @@
     1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "ARM EABI LICENCE.txt"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// in kernel/eka/compsupp.
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +// This file is part of dfprvct-thunk.dll.
    1.20 +//
    1.21 +
    1.22 +
    1.23 +extern "C"
    1.24 +{
    1.25 +IMPORT_C double __aeabi_l2d(long long);
    1.26 +IMPORT_C double __aeabi_ul2d(unsigned long long);
    1.27 +IMPORT_C long long __aeabi_d2lz(double);
    1.28 +IMPORT_C unsigned long long __aeabi_d2ulz(double);
    1.29 +IMPORT_C float __aeabi_l2f(long long);
    1.30 +IMPORT_C float __aeabi_ul2f(unsigned long long);
    1.31 +IMPORT_C long long __aeabi_f2lz(float);
    1.32 +IMPORT_C unsigned long long __aeabi_f2ulz(float);
    1.33 +
    1.34 +EXPORT_C double _ll_sto_d(long long val)
    1.35 +	{
    1.36 +	return __aeabi_l2d(val);
    1.37 +	}
    1.38 +
    1.39 +EXPORT_C double _ll_usto_d(unsigned long long val)
    1.40 +	{
    1.41 +	return __aeabi_ul2d(val);
    1.42 +	}
    1.43 +
    1.44 +EXPORT_C long long _ll_sfrom_d(double val)
    1.45 +	{
    1.46 +	return __aeabi_d2lz(val);
    1.47 +	}
    1.48 +
    1.49 +EXPORT_C unsigned long long _ll_usfrom_d(double val)
    1.50 +	{
    1.51 +	return __aeabi_d2ulz(val);
    1.52 +	}
    1.53 +
    1.54 +EXPORT_C float _ll_sto_f(long long val)
    1.55 +	{
    1.56 +	return __aeabi_l2d(val);
    1.57 +	}
    1.58 +
    1.59 +EXPORT_C float _ll_usto_f(unsigned long long val)
    1.60 +	{
    1.61 +	return __aeabi_ul2d(val);
    1.62 +	}
    1.63 +
    1.64 +EXPORT_C long long _ll_sfrom_f(float val)
    1.65 +	{
    1.66 +	return __aeabi_d2lz(val);
    1.67 +	}
    1.68 +
    1.69 +EXPORT_C unsigned long long _ll_usfrom_f(float val)
    1.70 +	{
    1.71 +	return __aeabi_d2ulz(val);
    1.72 +	}
    1.73 +
    1.74 +} // extern "C"