xref: /llvm-project/libc/src/math/amdgpu/fmin.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1d2926107SJoseph Huber //===-- Implementation of the fmin function for GPU -----------------------===//
2d2926107SJoseph Huber //
3d2926107SJoseph Huber // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4d2926107SJoseph Huber // See https://llvm.org/LICENSE.txt for license information.
5d2926107SJoseph Huber // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6d2926107SJoseph Huber //
7d2926107SJoseph Huber //===----------------------------------------------------------------------===//
8d2926107SJoseph Huber 
9d2926107SJoseph Huber #include "src/math/fmin.h"
1077069453SJoseph Huber 
11d2926107SJoseph Huber #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
13d2926107SJoseph Huber 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
15d2926107SJoseph Huber 
16d2926107SJoseph Huber LLVM_LIBC_FUNCTION(double, fmin, (double x, double y)) {
17d2926107SJoseph Huber   return __builtin_fmin(x, y);
18d2926107SJoseph Huber }
19d2926107SJoseph Huber 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21