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:
Andreas Kling 2019-10-20 12:25:05 +02:00
parent 14c8446ea4
commit 9eaaaeec6e
Notes: sideshowbarker 2024-07-19 11:36:49 +09:00

View file

@ -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;
}
}