OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T > Struct Template Reference

Detailed Description

template<typename _UnsignedBits, typename T>
struct cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >

Basic type traits (signed primitive specialization)

Definition at line 1000 of file util_type.cuh.

Public Types

enum  { PRIMITIVE = true , NULL_TYPE = false }
 
typedef _UnsignedBits UnsignedBits
 

Static Public Member Functions

static __device__ __forceinline__ UnsignedBits TwiddleIn (UnsignedBits key)
 
static __device__ __forceinline__ UnsignedBits TwiddleOut (UnsignedBits key)
 
static __host__ __device__ __forceinline__ T Max ()
 
static __host__ __device__ __forceinline__ T Lowest ()
 

Static Public Attributes

static const Category CATEGORY = SIGNED_INTEGER
 
static const UnsignedBits HIGH_BIT = UnsignedBits(1) << ((sizeof(UnsignedBits) * 8) - 1)
 
static const UnsignedBits LOWEST_KEY = HIGH_BIT
 
static const UnsignedBits MAX_KEY = UnsignedBits(-1) ^ HIGH_BIT
 

Member Typedef Documentation

◆ UnsignedBits

template<typename _UnsignedBits , typename T >
typedef _UnsignedBits cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::UnsignedBits

Definition at line 1002 of file util_type.cuh.

Member Enumeration Documentation

◆ anonymous enum

template<typename _UnsignedBits , typename T >
anonymous enum

Definition at line 1009 of file util_type.cuh.

Member Function Documentation

◆ Lowest()

template<typename _UnsignedBits , typename T >
static __host__ __device__ __forceinline__ T cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::Lowest ( )
inlinestatic

Definition at line 1031 of file util_type.cuh.

◆ Max()

template<typename _UnsignedBits , typename T >
static __host__ __device__ __forceinline__ T cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::Max ( )
inlinestatic

Definition at line 1025 of file util_type.cuh.

◆ TwiddleIn()

template<typename _UnsignedBits , typename T >
static __device__ __forceinline__ UnsignedBits cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::TwiddleIn ( UnsignedBits  key)
inlinestatic

Definition at line 1015 of file util_type.cuh.

◆ TwiddleOut()

template<typename _UnsignedBits , typename T >
static __device__ __forceinline__ UnsignedBits cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::TwiddleOut ( UnsignedBits  key)
inlinestatic

Definition at line 1020 of file util_type.cuh.

Field Documentation

◆ CATEGORY

template<typename _UnsignedBits , typename T >
const Category cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::CATEGORY = SIGNED_INTEGER
static

Definition at line 1004 of file util_type.cuh.

◆ HIGH_BIT

template<typename _UnsignedBits , typename T >
const UnsignedBits cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::HIGH_BIT = UnsignedBits(1) << ((sizeof(UnsignedBits) * 8) - 1)
static

Definition at line 1005 of file util_type.cuh.

◆ LOWEST_KEY

template<typename _UnsignedBits , typename T >
const UnsignedBits cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::LOWEST_KEY = HIGH_BIT
static

Definition at line 1006 of file util_type.cuh.

◆ MAX_KEY

template<typename _UnsignedBits , typename T >
const UnsignedBits cub::BaseTraits< SIGNED_INTEGER, true, false, _UnsignedBits, T >::MAX_KEY = UnsignedBits(-1) ^ HIGH_BIT
static

Definition at line 1007 of file util_type.cuh.


The documentation for this struct was generated from the following file: