alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
intrinsic.hpp
Go to the documentation of this file.
1/* Copyright 2025 Luca Venerando Greco, René Widera
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
7#include <cstdint>
8
9namespace alpaka::internal::intrinsic
10{
11 struct Popcount
12 {
13 template<typename T_IntrinsicImpl, typename T_Arg>
14 struct Op
15 {
16 int32_t operator()(T_IntrinsicImpl const, T_Arg const& val) const;
17 };
18 };
19
20 struct Ffs
21 {
22 template<typename T_IntrinsicImpl, typename T_Arg>
23 struct Op
24 {
25 int32_t operator()(T_IntrinsicImpl const, T_Arg const& val) const;
26 };
27 };
28
29 struct Clz
30 {
31 template<typename T_IntrinsicImpl, typename T_Arg>
32 struct Op
33 {
34 int32_t operator()(T_IntrinsicImpl const, T_Arg const& val) const;
35 };
36 };
37} // namespace alpaka::internal::intrinsic