1d2926107SJoseph Huber //===-- Implementation of the fabs 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/fabs.h" 10d2926107SJoseph Huber #include "src/__support/common.h" 11*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 12d2926107SJoseph Huber 13*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 14d2926107SJoseph Huber 15d2926107SJoseph Huber LLVM_LIBC_FUNCTION(double, fabs, (double x)) { return __builtin_fabs(x); } 16d2926107SJoseph Huber 17*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 18