File tree Expand file tree Collapse file tree 8 files changed +20
-10
lines changed
libclc/libspirv/lib/generic Expand file tree Collapse file tree 8 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ atomic/atomic_xor.cl
2121atomic/atomic_load.cl
2222atomic/atomic_store.cl
2323common/degrees.cl
24+ common/fclamp.cl
2425common/mix.cl
2526common/radians.cl
2627common/sign.cl
@@ -38,12 +39,15 @@ geometric/scale.cl
3839integer/abs.cl
3940integer/abs_diff.cl
4041integer/add_sat.cl
42+ integer/clamp.cl
4143integer/clz.cl
4244integer/ctz.cl
4345integer/hadd.cl
4446integer/mad24.cl
4547integer/mad_hi.cl
4648integer/mad_sat.cl
49+ integer/max.cl
50+ integer/min.cl
4751integer/mul24.cl
4852integer/mul_hi.cl
4953integer/popcount.cl
@@ -170,9 +174,6 @@ relational/isordered.cl
170174relational/isunordered.cl
171175relational/select.cl
172176relational/signbit.cl
173- shared/clamp.cl
174- shared/max.cl
175- shared/min.cl
176177shared/vload.cl
177178shared/vstore.cl
178179workitem/get_global_id.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 <clc/shared/clc_clamp.h>
10+ #include <libspirv/spirv.h>
11+
12+ #define FUNCTION __spirv_ocl_fclamp
13+ #define __CLC_FUNCTION (x ) __clc_clamp
14+
15+ #define __CLC_BODY <clc/shared/ternary_def.inc>
16+ #include <clc/math/gentype.inc>
Original file line number Diff line number Diff line change 1111
1212#define __CLC_BODY <clamp.inc>
1313#include <clc/integer/gentype.inc>
14-
15- #define __CLC_BODY <clamp.inc>
16- #include <clc/math/gentype.inc>
Original file line number Diff line number Diff line change 66//
77// ===----------------------------------------------------------------------===//
88
9- #ifdef __CLC_FPSIZE
10- #define DECL __spirv_ocl_fclamp
11- #else
129#ifdef __CLC_GEN_S
1310#define DECL __spirv_ocl_s_clamp
1411#else
1512#define DECL __spirv_ocl_u_clamp
1613#endif
17- #endif
1814
1915_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE DECL (__CLC_GENTYPE x, __CLC_GENTYPE y,
2016 __CLC_GENTYPE z) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments