summaryrefslogtreecommitdiff
path: root/libc/src/math/fminf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/math/fminf.cpp')
-rw-r--r--libc/src/math/fminf.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/src/math/fminf.cpp b/libc/src/math/fminf.cpp
new file mode 100644
index 000000000000..8f5b54873f8f
--- /dev/null
+++ b/libc/src/math/fminf.cpp
@@ -0,0 +1,18 @@
+//===-- Implementation of fminf function ----------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/__support/common.h"
+#include "utils/FPUtil/BasicOperations.h"
+
+namespace __llvm_libc {
+
+float LLVM_LIBC_ENTRYPOINT(fminf)(float x, float y) {
+ return fputil::fmin(x, y);
+}
+
+} // namespace __llvm_libc \ No newline at end of file