diff options
Diffstat (limited to 'src/math/amdgpu/pow.cpp')
-rw-r--r-- | src/math/amdgpu/pow.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/math/amdgpu/pow.cpp b/src/math/amdgpu/pow.cpp new file mode 100644 index 000000000000..e5056f67292d --- /dev/null +++ b/src/math/amdgpu/pow.cpp @@ -0,0 +1,20 @@ +//===-- Implementation of the pow 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/pow.h" +#include "src/__support/common.h" + +#include "declarations.h" + +namespace LIBC_NAMESPACE { + +LLVM_LIBC_FUNCTION(double, pow, (double x, double y)) { + return __ocml_pow_f64(x, y); +} + +} // namespace LIBC_NAMESPACE |