File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed
libclc/libspirv/lib/generic Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ math/fmax_common.cl
9292math/fmin.cl
9393math/fmin_common.cl
9494math/fmod.cl
95+ math/FMod.cl
96+ math/FRem.cl
9597math/fract.cl
9698math/frexp.cl
9799math/half_cos.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/math/clc_copysign.h>
10+ #include <clc/math/clc_fmod.h>
11+ #include <libspirv/spirv.h>
12+
13+ #define __CLC_BODY <FMod.inc>
14+ #include <clc/math/gentype.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+ _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __spirv_FMod (__CLC_GENTYPE x,
10+ __CLC_GENTYPE y) {
11+ return __clc_copysign (__clc_fmod (x, y), y);
12+ }
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/math/clc_fmod.h>
10+ #include <libspirv/spirv.h>
11+
12+ #define __CLC_FUNCTION __spirv_FRem
13+ #define __CLC_IMPL_FUNCTION (x ) __clc_fmod
14+ #define __CLC_BODY <clc/shared/binary_def.inc>
15+
16+ #include <clc/math/gentype.inc>
You can’t perform that action at this time.
0 commit comments