diff options
Diffstat (limited to 'libc/src/math/amdgpu/fabs.cpp')
-rw-r--r-- | libc/src/math/amdgpu/fabs.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libc/src/math/amdgpu/fabs.cpp b/libc/src/math/amdgpu/fabs.cpp new file mode 100644 index 0000000..c0d063d --- /dev/null +++ b/libc/src/math/amdgpu/fabs.cpp @@ -0,0 +1,16 @@ +//===-- Implementation of the fabs function for GPU -----------------------===// +// +// 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/math/fabs.h" +#include "src/__support/common.h" + +namespace LIBC_NAMESPACE { + +LLVM_LIBC_FUNCTION(double, fabs, (double x)) { return __builtin_fabs(x); } + +} // namespace LIBC_NAMESPACE |