alpaka
Abstraction Library for Parallel Kernel Acceleration
Traits.hpp File Reference
#include "alpaka/core/Common.hpp"
#include "alpaka/core/Interface.hpp"
#include <cstdint>
#include <type_traits>

Go to the source code of this file.

Classes

struct  alpaka::ConceptIntrinsic
 

Namespaces

 alpaka
 The alpaka accelerator library.
 
 alpaka::trait
 The accelerator traits.
 

Functions

template<typename TIntrinsic >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto alpaka::ffs (TIntrinsic const &intrinsic, std::int32_t value) -> std::int32_t
 Returns the 1-based position of the least significant bit set to 1 in the given 32-bit value. Returns 0 for input value 0. More...
 
template<typename TIntrinsic >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto alpaka::ffs (TIntrinsic const &intrinsic, std::int64_t value) -> std::int32_t
 Returns the 1-based position of the least significant bit set to 1 in the given 64-bit value. Returns 0 for input value 0. More...
 
template<typename TIntrinsic >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto alpaka::popcount (TIntrinsic const &intrinsic, std::uint32_t value) -> std::int32_t
 Returns the number of 1 bits in the given 32-bit value. More...
 
template<typename TIntrinsic >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto alpaka::popcount (TIntrinsic const &intrinsic, std::uint64_t value) -> std::int32_t
 Returns the number of 1 bits in the given 64-bit value. More...