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

20 lines
634 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_bit_reverse.h>
#include <clc/opencl/integer/bit_reverse.h>
#define FUNCTION bit_reverse
#define __CLC_BODY <clc/shared/unary_def.inc>
#include <clc/integer/gentype.inc>
#endif // cl_khr_extended_bit_ops