mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-28 16:26:15 +00:00
LibM: Implement fma
This commit is contained in:
committed by
Brian Gianforcaro
parent
6c650d1b8d
commit
6187cf72cc
@@ -1116,6 +1116,22 @@ float fminf(float x, float y) NOEXCEPT
|
||||
return x < y ? x : y;
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/fma.html
|
||||
long double fmal(long double x, long double y, long double z) NOEXCEPT
|
||||
{
|
||||
return (x * y) + z;
|
||||
}
|
||||
|
||||
double fma(double x, double y, double z) NOEXCEPT
|
||||
{
|
||||
return (x * y) + z;
|
||||
}
|
||||
|
||||
float fmaf(float x, float y, float z) NOEXCEPT
|
||||
{
|
||||
return (x * y) + z;
|
||||
}
|
||||
|
||||
long double nearbyintl(long double value) NOEXCEPT
|
||||
{
|
||||
return internal_to_integer(value, RoundingMode { fegetround() });
|
||||
|
||||
Reference in New Issue
Block a user