mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +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: 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