mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibM: Add dummy implementations of roundf() and ceilf()
I though I could just use __builtin_roundf() and __builtin_ceilf() but it seems like I can't, as they just become calls to roundf and ceilf.
This commit is contained in:
parent
14c8446ea4
commit
9eaaaeec6e
1 changed files with 13 additions and 0 deletions
|
@ -273,4 +273,17 @@ long double frexpl(long double, int*)
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float roundf(float value)
|
||||||
|
{
|
||||||
|
// FIXME: Please fix me. I am sad.
|
||||||
|
return (int)value;
|
||||||
|
}
|
||||||
|
|
||||||
|
float ceilf(float value)
|
||||||
|
{
|
||||||
|
// FIXME: Please fix me. I am sad.
|
||||||
|
return (int)value;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue