xref: /llvm-project/libc/src/math/amdgpu/powif.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
160ff9c2eSJoseph Huber //===-- Implementation of the powi function for GPU -----------------------===//
260ff9c2eSJoseph Huber //
360ff9c2eSJoseph Huber // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
460ff9c2eSJoseph Huber // See https://llvm.org/LICENSE.txt for license information.
560ff9c2eSJoseph Huber // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
660ff9c2eSJoseph Huber //
760ff9c2eSJoseph Huber //===----------------------------------------------------------------------===//
860ff9c2eSJoseph Huber 
960ff9c2eSJoseph Huber #include "src/math/powif.h"
1060ff9c2eSJoseph Huber #include "src/__support/common.h"
11*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
1260ff9c2eSJoseph Huber 
1360ff9c2eSJoseph Huber #include "declarations.h"
1460ff9c2eSJoseph Huber 
15*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
1660ff9c2eSJoseph Huber 
1760ff9c2eSJoseph Huber LLVM_LIBC_FUNCTION(float, powif, (float x, int y)) {
1860ff9c2eSJoseph Huber   return __ocml_pown_f32(x, y);
1960ff9c2eSJoseph Huber }
2060ff9c2eSJoseph Huber 
21*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
22