From 9eaaaeec6ebeac1b8033ad04afdddbcd5e936c1f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 20 Oct 2019 12:25:05 +0200 Subject: [PATCH] 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. --- Libraries/LibM/math.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Libraries/LibM/math.cpp b/Libraries/LibM/math.cpp index 0443a01f75..012d3e0ff8 100644 --- a/Libraries/LibM/math.cpp +++ b/Libraries/LibM/math.cpp @@ -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; +} + }