kernel/eka/compsupp/rvct/dfprvct-thunk.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 07 Jan 2010 13:38:45 +0200
changeset 44 36bfc973b146
parent 43 96e5fb8b040d
child 45 329ab0095843
permissions -rw-r--r--
Revision: 201001 Kit: 201001

/*
* Copyright (c) 2004-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: 
*
*/



extern "C"
{
IMPORT_C double __aeabi_l2d(long long);
IMPORT_C double __aeabi_ul2d(unsigned long long);
IMPORT_C long long __aeabi_d2lz(double);
IMPORT_C unsigned long long __aeabi_d2ulz(double);
IMPORT_C float __aeabi_l2f(long long);
IMPORT_C float __aeabi_ul2f(unsigned long long);
IMPORT_C long long __aeabi_f2lz(float);
IMPORT_C unsigned long long __aeabi_f2ulz(float);

EXPORT_C double _ll_sto_d(long long val)
	{
	return __aeabi_l2d(val);
	}

EXPORT_C double _ll_usto_d(unsigned long long val)
	{
	return __aeabi_ul2d(val);
	}

EXPORT_C long long _ll_sfrom_d(double val)
	{
	return __aeabi_d2lz(val);
	}

EXPORT_C unsigned long long _ll_usfrom_d(double val)
	{
	return __aeabi_d2ulz(val);
	}

EXPORT_C float _ll_sto_f(long long val)
	{
	return __aeabi_l2d(val);
	}

EXPORT_C float _ll_usto_f(unsigned long long val)
	{
	return __aeabi_ul2d(val);
	}

EXPORT_C long long _ll_sfrom_f(float val)
	{
	return __aeabi_d2lz(val);
	}

EXPORT_C unsigned long long _ll_usfrom_f(float val)
	{
	return __aeabi_d2ulz(val);
	}

} // extern "C"