Change-Id: I661991d9d43941a61848b0b8e9879c0bfa811b40


[ROCm/hip commit: 64bb8d154a]
Этот коммит содержится в:
Aditya Atluri
2017-06-16 09:02:26 -05:00
родитель 74e3617ef8
Коммит f5dff37b8b
-4
Просмотреть файл
@@ -36,25 +36,21 @@ THE SOFTWARE.
#define MAKE_DEFAULT_CONSTRUCTOR_ONE_COMPONENT(type) \
__device__ __host__ type() {} \
__device__ __host__ type(type& val) : x(val.x) { } \
__device__ __host__ type(const type& val) : x(val.x) { } \
__device__ __host__ ~type() {}
#define MAKE_DEFAULT_CONSTRUCTOR_TWO_COMPONENT(type) \
__device__ __host__ type() {} \
__device__ __host__ type(type& val) : x(val.x), y(val.y) { } \
__device__ __host__ type(const type& val) : x(val.x), y(val.y) { } \
__device__ __host__ ~type() {}
#define MAKE_DEFAULT_CONSTRUCTOR_THREE_COMPONENT(type) \
__device__ __host__ type() {} \
__device__ __host__ type(type& val) : x(val.x), y(val.y), z(val.z) { } \
__device__ __host__ type(const type& val) : x(val.x), y(val.y), z(val.z) { } \
__device__ __host__ ~type() {}
#define MAKE_DEFAULT_CONSTRUCTOR_FOUR_COMPONENT(type) \
__device__ __host__ type() {} \
__device__ __host__ type(type& val) : x(val.x), y(val.y), z(val.z), w(val.w) { } \
__device__ __host__ type(const type& val) : x(val.x), y(val.y), z(val.z), w(val.w) { } \
__device__ __host__ ~type() {}