summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibM
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-01-18 18:16:41 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-18 22:28:56 +0100
commitc46056122a49aa5789c44aca9567e729d175cbbe (patch)
treefe15bc94247813aa77de107f68467bc4efd65402 /Userland/Libraries/LibM
parent8db54f9ef4fc159a95d9293bdee476b3ae09a1ec (diff)
downloadserenity-c46056122a49aa5789c44aca9567e729d175cbbe.zip
LibM: Add nextafter() and nexttoward() stubs
Only thing missing for Python to build the _math module! :^)
Diffstat (limited to 'Userland/Libraries/LibM')
-rw-r--r--Userland/Libraries/LibM/math.cpp30
-rw-r--r--Userland/Libraries/LibM/math.h7
2 files changed, 37 insertions, 0 deletions
diff --git a/Userland/Libraries/LibM/math.cpp b/Userland/Libraries/LibM/math.cpp
index 2c5c86bdcf..6dafbc74b6 100644
--- a/Userland/Libraries/LibM/math.cpp
+++ b/Userland/Libraries/LibM/math.cpp
@@ -563,4 +563,34 @@ double erfc(double x) NOEXCEPT
{
return 1 - erf(x);
}
+
+double nextafter(double, double) NOEXCEPT
+{
+ TODO();
+}
+
+float nextafterf(float, float) NOEXCEPT
+{
+ TODO();
+}
+
+long double nextafterl(long double, long double) NOEXCEPT
+{
+ TODO();
+}
+
+double nexttoward(double, long double) NOEXCEPT
+{
+ TODO();
+}
+
+float nexttowardf(float, long double) NOEXCEPT
+{
+ TODO();
+}
+
+long double nexttowardl(long double, long double) NOEXCEPT
+{
+ TODO();
+}
}
diff --git a/Userland/Libraries/LibM/math.h b/Userland/Libraries/LibM/math.h
index 8d9b727ddc..74ba8c3e8a 100644
--- a/Userland/Libraries/LibM/math.h
+++ b/Userland/Libraries/LibM/math.h
@@ -134,4 +134,11 @@ double hypot(double, double) NOEXCEPT;
double erf(double) NOEXCEPT;
double erfc(double) NOEXCEPT;
+double nextafter(double, double) NOEXCEPT;
+float nextafterf(float, float) NOEXCEPT;
+long double nextafterl(long double, long double) NOEXCEPT;
+double nexttoward(double, long double) NOEXCEPT;
+float nexttowardf(float, long double) NOEXCEPT;
+long double nexttowardl(long double, long double) NOEXCEPT;
+
__END_DECLS