File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed
libclc/libspirv/lib/generic Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ math/fmin.cl
9393math/fmin_common.cl
9494math/fmod.cl
9595math/fract.cl
96+ math/frem.cl
9697math/frexp.cl
9798math/half_cos.cl
9899math/half_divide.cl
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9- #include <libspirv/spirv .h>
9+ #include <clc/math/clc_copysign .h>
1010#include <clc/math/clc_fmod.h>
11+ #include <libspirv/spirv.h>
1112
1213#define __CLC_FUNCTION __spirv_ocl_fmod
1314#define __CLC_IMPL_FUNCTION (x ) __clc_fmod
1415#define __CLC_BODY <clc/shared/binary_def.inc>
1516#include <clc/math/gentype.inc>
17+
18+ #define __CLC_BODY <fmod.inc>
19+ #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