Skip to content

Commit be5db33

Browse files
authored
[libclc] Fix bitfield_insert implementation (#170208)
The `bitfield_insert` function in the OpenCL C library had an incorrect `__CLC_BODY` definition, that included the `.inc` file for the `__clc_bitfield_insert` declaration instead of the correct implementation. So, the function was not defined at all, leading to linker errors when trying to use it.
1 parent 64a7628 commit be5db33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/opencl/lib/generic/integer/bitfield_insert.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <clc/opencl/integer/bitfield_insert.h>
1313

1414
#define __CLC_FUNCTION bitfield_insert
15-
#define __CLC_BODY <clc/integer/clc_bitfield_insert.inc>
15+
#define __CLC_BODY <bitfield_insert.inc>
1616
#include <clc/integer/gentype.inc>
1717

1818
#endif // cl_khr_extended_bit_ops

0 commit comments

Comments
 (0)