HIP: Heterogenous-computing Interface for Portability
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
hip_vector_types.h File Reference

Defines the different newt vector types for HIP runtime. More...

Go to the source code of this file.

Macros

#define ONE_COMPONENT_ACCESS(T, VT)   inline VT make_ ##VT (T x) { VT t; t.x = x; return t; };
 

 
#define TWO_COMPONENT_ACCESS(T, VT)   inline VT make_ ##VT (T x, T y) { VT t; t.x=x; t.y=y; return t; };
 
#define THREE_COMPONENT_ACCESS(T, VT)   inline VT make_ ##VT (T x, T y, T z) { VT t; t.x=x; t.y=y; t.z=z; return t; };
 
#define FOUR_COMPONENT_ACCESS(T, VT)   inline VT make_ ##VT (T x, T y, T z, T w) { VT t; t.x=x; t.y=y; t.z=z; t.w=w; return t; };
 

Typedefs

typedef hc::short_vector::char1 char1
 
typedef hc::short_vector::char2 char2
 
typedef hc::short_vector::char3 char3
 
typedef hc::short_vector::char4 char4
 
typedef hc::short_vector::short1 short1
 
typedef hc::short_vector::short2 short2
 
typedef hc::short_vector::short3 short3
 
typedef hc::short_vector::short4 short4
 
typedef hc::short_vector::int1 int1
 
typedef hc::short_vector::int2 int2
 
typedef hc::short_vector::int3 int3
 
typedef hc::short_vector::int4 int4
 
typedef hc::short_vector::long1 long1
 
typedef hc::short_vector::long2 long2
 
typedef hc::short_vector::long3 long3
 
typedef hc::short_vector::long4 long4
 
typedef hc::short_vector::longlong1 longlong1
 
typedef hc::short_vector::longlong2 longlong2
 
typedef hc::short_vector::longlong3 longlong3
 
typedef hc::short_vector::longlong4 longlong4
 
typedef hc::short_vector::uchar1 uchar1
 
typedef hc::short_vector::uchar2 uchar2
 
typedef hc::short_vector::uchar3 uchar3
 
typedef hc::short_vector::uchar4 uchar4
 
typedef hc::short_vector::ushort1 ushort1
 
typedef hc::short_vector::ushort2 ushort2
 
typedef hc::short_vector::ushort3 ushort3
 
typedef hc::short_vector::ushort4 ushort4
 
typedef hc::short_vector::uint1 uint1
 
typedef hc::short_vector::uint2 uint2
 
typedef hc::short_vector::uint3 uint3
 
typedef hc::short_vector::uint4 uint4
 
typedef hc::short_vector::ulong1 ulong1
 
typedef hc::short_vector::ulong2 ulong2
 
typedef hc::short_vector::ulong3 ulong3
 
typedef hc::short_vector::ulong4 ulong4
 
typedef
hc::short_vector::ulonglong1 
ulonglong1
 
typedef
hc::short_vector::ulonglong2 
ulonglong2
 
typedef
hc::short_vector::ulonglong3 
ulonglong3
 
typedef
hc::short_vector::ulonglong4 
ulonglong4
 
typedef hc::short_vector::float1 float1
 
typedef hc::short_vector::float2 float2
 
typedef hc::short_vector::float3 float3
 
typedef hc::short_vector::float4 float4
 
typedef hc::short_vector::double1 double1
 
typedef hc::short_vector::double2 double2
 
typedef hc::short_vector::double3 double3
 
typedef hc::short_vector::double4 double4
 

Functions

 ONE_COMPONENT_ACCESS (signed char, char1)
 
 TWO_COMPONENT_ACCESS (signed char, char2)
 
 THREE_COMPONENT_ACCESS (signed char, char3)
 
 FOUR_COMPONENT_ACCESS (signed char, char4)
 
 ONE_COMPONENT_ACCESS (short, short1)
 
 TWO_COMPONENT_ACCESS (short, short2)
 
 THREE_COMPONENT_ACCESS (short, short3)
 
 FOUR_COMPONENT_ACCESS (short, short4)
 
 ONE_COMPONENT_ACCESS (int, int1)
 
 TWO_COMPONENT_ACCESS (int, int2)
 
 THREE_COMPONENT_ACCESS (int, int3)
 
 FOUR_COMPONENT_ACCESS (int, int4)
 
 ONE_COMPONENT_ACCESS (long int, long1)
 
 TWO_COMPONENT_ACCESS (long int, long2)
 
 THREE_COMPONENT_ACCESS (long int, long3)
 
 FOUR_COMPONENT_ACCESS (long int, long4)
 
 ONE_COMPONENT_ACCESS (long long int, ulong1)
 
 TWO_COMPONENT_ACCESS (long long int, ulong2)
 
 THREE_COMPONENT_ACCESS (long long int, ulong3)
 
 FOUR_COMPONENT_ACCESS (long long int, ulong4)
 
 ONE_COMPONENT_ACCESS (long long int, longlong1)
 
 TWO_COMPONENT_ACCESS (long long int, longlong2)
 
 THREE_COMPONENT_ACCESS (long long int, longlong3)
 
 FOUR_COMPONENT_ACCESS (long long int, longlong4)
 
 ONE_COMPONENT_ACCESS (unsigned char, uchar1)
 
 TWO_COMPONENT_ACCESS (unsigned char, uchar2)
 
 THREE_COMPONENT_ACCESS (unsigned char, uchar3)
 
 FOUR_COMPONENT_ACCESS (unsigned char, uchar4)
 
 ONE_COMPONENT_ACCESS (unsigned short, ushort1)
 
 TWO_COMPONENT_ACCESS (unsigned short, ushort2)
 
 THREE_COMPONENT_ACCESS (unsigned short, ushort3)
 
 FOUR_COMPONENT_ACCESS (unsigned short, ushort4)
 
 ONE_COMPONENT_ACCESS (unsigned int, uint1)
 
 TWO_COMPONENT_ACCESS (unsigned int, uint2)
 
 THREE_COMPONENT_ACCESS (unsigned int, uint3)
 
 FOUR_COMPONENT_ACCESS (unsigned int, uint4)
 
 ONE_COMPONENT_ACCESS (unsigned long int, ulong1)
 
 TWO_COMPONENT_ACCESS (unsigned long int, ulong2)
 
 THREE_COMPONENT_ACCESS (unsigned long int, ulong3)
 
 FOUR_COMPONENT_ACCESS (unsigned long int, ulong4)
 
 ONE_COMPONENT_ACCESS (unsigned long long int, ulong1)
 
 TWO_COMPONENT_ACCESS (unsigned long long int, ulong2)
 
 THREE_COMPONENT_ACCESS (unsigned long long int, ulong3)
 
 FOUR_COMPONENT_ACCESS (unsigned long long int, ulong4)
 
 ONE_COMPONENT_ACCESS (unsigned long long int, ulonglong1)
 
 TWO_COMPONENT_ACCESS (unsigned long long int, ulonglong2)
 
 THREE_COMPONENT_ACCESS (unsigned long long int, ulonglong3)
 
 FOUR_COMPONENT_ACCESS (unsigned long long int, ulonglong4)
 
 ONE_COMPONENT_ACCESS (float, float1)
 
 TWO_COMPONENT_ACCESS (float, float2)
 
 THREE_COMPONENT_ACCESS (float, float3)
 
 FOUR_COMPONENT_ACCESS (float, float4)
 
 ONE_COMPONENT_ACCESS (double, double1)
 
 TWO_COMPONENT_ACCESS (double, double2)
 
 THREE_COMPONENT_ACCESS (double, double3)
 
 FOUR_COMPONENT_ACCESS (double, double4)
 

Detailed Description

Defines the different newt vector types for HIP runtime.