llvm-project/libclc/opencl/lib/generic/integer/bitfield_extract_unsigned.cl
Wenju He c0294f497d
[libclc] Add generic implementation of bitfield_insert/extract,bit_reverse (#149070)
The implementation is based on reference implementation in
OpenCL-CTS/test_integer_ops. The generic implementations pass
OpenCL-CTS/test_integer_ops tests on Intel GPU.
2025-07-18 08:06:29 +08:00

21 lines
710 B
Common Lisp

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifdef cl_khr_extended_bit_ops
#include <clc/integer/clc_bitfield_extract_unsigned.h>
#include <clc/opencl/integer/bitfield_extract_unsigned.h>
#define FUNCTION bitfield_extract_unsigned
#define __RETTYPE __CLC_U_GENTYPE
#define __CLC_BODY <bitfield_extract_def.inc>
#include <clc/integer/gentype.inc>
#endif // cl_khr_extended_bit_ops