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.
16 lines
589 B
Common Lisp
16 lines
589 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include <clc/integer/clc_bit_reverse.h>
|
|
|
|
#define FUNCTION __clc_bit_reverse
|
|
#define __IMPL_FUNCTION(x) __builtin_elementwise_bitreverse
|
|
#define __CLC_BODY <clc/shared/unary_def.inc>
|
|
|
|
#include <clc/integer/gentype.inc>
|