Lines Matching refs:SRC
202 #define TEST_EQ_4UBV(DST, SRC) *((GLuint*)(DST)) == *((GLuint*)(SRC))
204 #define TEST_EQ_4UBV(DST, SRC) TEST_EQ_4V(DST, SRC)
208 #define COPY_4V( DST, SRC ) \
210 (DST)[0] = (SRC)[0]; \
211 (DST)[1] = (SRC)[1]; \
212 (DST)[2] = (SRC)[2]; \
213 (DST)[3] = (SRC)[3]; \
217 #define COPY_4V_CAST( DST, SRC, CAST ) \
219 (DST)[0] = (CAST)(SRC)[0]; \
220 (DST)[1] = (CAST)(SRC)[1]; \
221 (DST)[2] = (CAST)(SRC)[2]; \
222 (DST)[3] = (CAST)(SRC)[3]; \
227 #define COPY_4UBV(DST, SRC) \
229 *((GLuint*)(DST)) = *((GLuint*)(SRC)); \
232 /* The GLuint cast might fail if DST or SRC are not dword-aligned (RISC) */
233 #define COPY_4UBV(DST, SRC) \
235 (DST)[0] = (SRC)[0]; \
236 (DST)[1] = (SRC)[1]; \
237 (DST)[2] = (SRC)[2]; \
238 (DST)[3] = (SRC)[3]; \
246 #define COPY_4FV( DST, SRC ) \
248 memcpy(DST, SRC, sizeof(GLfloat) * 4); \
252 #define COPY_SZ_4V(DST, SZ, SRC) \
255 case 4: (DST)[3] = (SRC)[3]; \
256 case 3: (DST)[2] = (SRC)[2]; \
257 case 2: (DST)[1] = (SRC)[1]; \
258 case 1: (DST)[0] = (SRC)[0]; \
264 #define COPY_CLEAN_4V(DST, SZ, SRC) \
267 COPY_SZ_4V( DST, SZ, SRC ); \
298 #define ACC_4V( DST, SRC ) \
300 (DST)[0] += (SRC)[0]; \
301 (DST)[1] += (SRC)[1]; \
302 (DST)[2] += (SRC)[2]; \
303 (DST)[3] += (SRC)[3]; \
368 #define COPY_3V( DST, SRC ) \
370 (DST)[0] = (SRC)[0]; \
371 (DST)[1] = (SRC)[1]; \
372 (DST)[2] = (SRC)[2]; \
376 #define COPY_3V_CAST( DST, SRC, CAST ) \
378 (DST)[0] = (CAST)(SRC)[0]; \
379 (DST)[1] = (CAST)(SRC)[1]; \
380 (DST)[2] = (CAST)(SRC)[2]; \
384 #define COPY_3FV( DST, SRC ) \
386 const GLfloat *_tmp = (SRC); \
417 #define SELF_SCALE_3V( DST, SRC ) \
419 (DST)[0] *= (SRC)[0]; \
420 (DST)[1] *= (SRC)[1]; \
421 (DST)[2] *= (SRC)[2]; \
425 #define ACC_3V( DST, SRC ) \
427 (DST)[0] += (SRC)[0]; \
428 (DST)[1] += (SRC)[1]; \
429 (DST)[2] += (SRC)[2]; \
491 #define COPY_2V( DST, SRC ) \
493 (DST)[0] = (SRC)[0]; \
494 (DST)[1] = (SRC)[1]; \
498 #define COPY_2V_CAST( DST, SRC, CAST ) \
500 (DST)[0] = (CAST)(SRC)[0]; \
501 (DST)[1] = (CAST)(SRC)[1]; \
505 #define COPY_2FV( DST, SRC ) \
507 const GLfloat *_tmp = (SRC); \
534 #define ACC_2V( DST, SRC ) \
536 (DST)[0] += (SRC)[0]; \
537 (DST)[1] += (SRC)[1]; \