File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
libclc/amdgcn-amdhsa/libspirv Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ synchronization/barrier.cl
55math/cos.cl
66math/sin.cl
77math/sqrt.cl
8+ math/atan.cl
9+ math/cbrt.cl
Original file line number Diff line number Diff line change 1+ //===----------------------------------------------------------------------===//
2+ //
3+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+ // See https://llvm.org/LICENSE.txt for license information.
5+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+ //
7+ //===----------------------------------------------------------------------===//
8+
9+ #include <clcmacro.h>
10+ #include <spirv/spirv.h>
11+
12+ double __ocml_atan_f64 (double );
13+ float __ocml_atan_f32 (float );
14+
15+ #define __CLC_FUNCTION __spirv_ocl_atan
16+ #define __CLC_BUILTIN __ocml_atan
17+ #define __CLC_BUILTIN_F __CLC_XCONCAT(__CLC_BUILTIN, _f32)
18+ #define __CLC_BUILTIN_D __CLC_XCONCAT(__CLC_BUILTIN, _f64)
19+ #include <math/unary_builtin.inc>
Original file line number Diff line number Diff line change 1+ //===----------------------------------------------------------------------===//
2+ //
3+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+ // See https://llvm.org/LICENSE.txt for license information.
5+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+ //
7+ //===----------------------------------------------------------------------===//
8+
9+ #include <clcmacro.h>
10+ #include <spirv/spirv.h>
11+
12+ double __ocml_cbrt_f64 (double );
13+ float __ocml_cbrt_f32 (float );
14+
15+ #define __CLC_FUNCTION __spirv_ocl_cbrt
16+ #define __CLC_BUILTIN __ocml_cbrt
17+ #define __CLC_BUILTIN_F __CLC_XCONCAT(__CLC_BUILTIN, _f32)
18+ #define __CLC_BUILTIN_D __CLC_XCONCAT(__CLC_BUILTIN, _f64)
19+ #include <math/unary_builtin.inc>
You can’t perform that action at this time.
0 commit comments