mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +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
Notes:
sideshowbarker
2024-07-19 11:36:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9eaaaeec6eb
1 changed files with 13 additions and 0 deletions
|
@ -273,4 +273,17 @@ long double frexpl(long double, int*)
|
|||
ASSERT_NOT_REACHED();
|
||||
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
Reference in a new issue