math.h revision 0933a70e3aa803a8762855b5b5ad591b03722075
/** @file
* innotek Portable Runtime / No-CRT - math.h, AMD inlined functions.
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___iprt_nocrt_amd64_math_h
#define ___iprt_nocrt_amd64_math_h
{
long double lrdResult;
: "=t" (lrdResult)
: "u" (lrd1),
"0" (lrd2)
: "st(1)");
return lrdResult;
}
{
long double lrdResult;
: "=t" (lrdResult)
: "0" (lrd));
return lrdResult;
}
{
return (float)inline_rintl(rf);
}
{
return (double)inline_rintl(rd);
}
{
long double lrdResult;
: "=t" (lrdResult)
: "0" (lrd));
return lrdResult;
}
{
return (float)inline_sqrtl(rf);
}
{
return (double)inline_sqrt(rd);
}
#endif /* RT_INLINE_ASM_GNU_STYLE */
#endif