@@ -74,10 +74,10 @@ inline __device__ char4 __ldg(const char4 *ptr) {
74
74
typedef char c4 __attribute__((ext_vector_type (4 )));
75
75
c4 rv = __nvvm_ldg_c4 (reinterpret_cast < const c4 * > (ptr ));
76
76
char4 ret ;
77
- ret .w = rv [0 ];
78
- ret .x = rv [1 ];
79
- ret .y = rv [2 ];
80
- ret .z = rv [3 ];
77
+ ret .x = rv [0 ];
78
+ ret .y = rv [1 ];
79
+ ret .z = rv [2 ];
80
+ ret .w = rv [3 ];
81
81
return ret ;
82
82
}
83
83
inline __device__ short2 __ldg (const short2 * ptr ) {
@@ -92,10 +92,10 @@ inline __device__ short4 __ldg(const short4 *ptr) {
92
92
typedef short s4 __attribute__((ext_vector_type (4 )));
93
93
s4 rv = __nvvm_ldg_s4 (reinterpret_cast < const s4 * > (ptr ));
94
94
short4 ret ;
95
- ret .w = rv [0 ];
96
- ret .x = rv [1 ];
97
- ret .y = rv [2 ];
98
- ret .z = rv [3 ];
95
+ ret .x = rv [0 ];
96
+ ret .y = rv [1 ];
97
+ ret .z = rv [2 ];
98
+ ret .w = rv [3 ];
99
99
return ret ;
100
100
}
101
101
inline __device__ int2 __ldg (const int2 * ptr ) {
@@ -110,10 +110,10 @@ inline __device__ int4 __ldg(const int4 *ptr) {
110
110
typedef int i4 __attribute__((ext_vector_type (4 )));
111
111
i4 rv = __nvvm_ldg_i4 (reinterpret_cast < const i4 * > (ptr ));
112
112
int4 ret ;
113
- ret .w = rv [0 ];
114
- ret .x = rv [1 ];
115
- ret .y = rv [2 ];
116
- ret .z = rv [3 ];
113
+ ret .x = rv [0 ];
114
+ ret .y = rv [1 ];
115
+ ret .z = rv [2 ];
116
+ ret .w = rv [3 ];
117
117
return ret ;
118
118
}
119
119
inline __device__ longlong2 __ldg (const longlong2 * ptr ) {
@@ -137,10 +137,10 @@ inline __device__ uchar4 __ldg(const uchar4 *ptr) {
137
137
typedef unsigned char uc4 __attribute__((ext_vector_type (4 )));
138
138
uc4 rv = __nvvm_ldg_uc4 (reinterpret_cast < const uc4 * > (ptr ));
139
139
uchar4 ret ;
140
- ret .w = rv [0 ];
141
- ret .x = rv [1 ];
142
- ret .y = rv [2 ];
143
- ret .z = rv [3 ];
140
+ ret .x = rv [0 ];
141
+ ret .y = rv [1 ];
142
+ ret .z = rv [2 ];
143
+ ret .w = rv [3 ];
144
144
return ret ;
145
145
}
146
146
inline __device__ ushort2 __ldg (const ushort2 * ptr ) {
@@ -155,10 +155,10 @@ inline __device__ ushort4 __ldg(const ushort4 *ptr) {
155
155
typedef unsigned short us4 __attribute__((ext_vector_type (4 )));
156
156
us4 rv = __nvvm_ldg_us4 (reinterpret_cast < const us4 * > (ptr ));
157
157
ushort4 ret ;
158
- ret .w = rv [0 ];
159
- ret .x = rv [1 ];
160
- ret .y = rv [2 ];
161
- ret .z = rv [3 ];
158
+ ret .x = rv [0 ];
159
+ ret .y = rv [1 ];
160
+ ret .z = rv [2 ];
161
+ ret .w = rv [3 ];
162
162
return ret ;
163
163
}
164
164
inline __device__ uint2 __ldg (const uint2 * ptr ) {
@@ -173,10 +173,10 @@ inline __device__ uint4 __ldg(const uint4 *ptr) {
173
173
typedef unsigned int ui4 __attribute__((ext_vector_type (4 )));
174
174
ui4 rv = __nvvm_ldg_ui4 (reinterpret_cast < const ui4 * > (ptr ));
175
175
uint4 ret ;
176
- ret .w = rv [0 ];
177
- ret .x = rv [1 ];
178
- ret .y = rv [2 ];
179
- ret .z = rv [3 ];
176
+ ret .x = rv [0 ];
177
+ ret .y = rv [1 ];
178
+ ret .z = rv [2 ];
179
+ ret .w = rv [3 ];
180
180
return ret ;
181
181
}
182
182
inline __device__ ulonglong2 __ldg (const ulonglong2 * ptr ) {
@@ -200,10 +200,10 @@ inline __device__ float4 __ldg(const float4 *ptr) {
200
200
typedef float f4 __attribute__((ext_vector_type (4 )));
201
201
f4 rv = __nvvm_ldg_f4 (reinterpret_cast < const f4 * > (ptr ));
202
202
float4 ret ;
203
- ret .w = rv [0 ];
204
- ret .x = rv [1 ];
205
- ret .y = rv [2 ];
206
- ret .z = rv [3 ];
203
+ ret .x = rv [0 ];
204
+ ret .y = rv [1 ];
205
+ ret .z = rv [2 ];
206
+ ret .w = rv [3 ];
207
207
return ret ;
208
208
}
209
209
inline __device__ double2 __ldg (const double2 * ptr ) {
0 commit comments