From c2322333b8d1732f4c6d4b71ff5ee2ea772d3cb5 Mon Sep 17 00:00:00 2001 From: Brian Date: Sun, 21 Oct 2007 17:15:07 -0600 Subject: [PATCH] rename some vars --- src/mesa/pipe/softpipe/sp_quad_blend.c | 50 +++++++++++++------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/mesa/pipe/softpipe/sp_quad_blend.c b/src/mesa/pipe/softpipe/sp_quad_blend.c index 5787b89588d..b056e477b1d 100644 --- a/src/mesa/pipe/softpipe/sp_quad_blend.c +++ b/src/mesa/pipe/softpipe/sp_quad_blend.c @@ -55,44 +55,44 @@ do { \ DST[3] = SRC; \ } while(0) -#define VEC4_ADD(SUM, A, B) \ +#define VEC4_ADD(R, A, B) \ do { \ - SUM[0] = A[0] + B[0]; \ - SUM[1] = A[1] + B[1]; \ - SUM[2] = A[2] + B[2]; \ - SUM[3] = A[3] + B[3]; \ + R[0] = A[0] + B[0]; \ + R[1] = A[1] + B[1]; \ + R[2] = A[2] + B[2]; \ + R[3] = A[3] + B[3]; \ } while (0) -#define VEC4_SUB(SUM, A, B) \ +#define VEC4_SUB(R, A, B) \ do { \ - SUM[0] = A[0] - B[0]; \ - SUM[1] = A[1] - B[1]; \ - SUM[2] = A[2] - B[2]; \ - SUM[3] = A[3] - B[3]; \ + R[0] = A[0] - B[0]; \ + R[1] = A[1] - B[1]; \ + R[2] = A[2] - B[2]; \ + R[3] = A[3] - B[3]; \ } while (0) -#define VEC4_MUL(SUM, A, B) \ +#define VEC4_MUL(R, A, B) \ do { \ - SUM[0] = A[0] * B[0]; \ - SUM[1] = A[1] * B[1]; \ - SUM[2] = A[2] * B[2]; \ - SUM[3] = A[3] * B[3]; \ + R[0] = A[0] * B[0]; \ + R[1] = A[1] * B[1]; \ + R[2] = A[2] * B[2]; \ + R[3] = A[3] * B[3]; \ } while (0) -#define VEC4_MIN(SUM, A, B) \ +#define VEC4_MIN(R, A, B) \ do { \ - SUM[0] = (A[0] < B[0]) ? A[0] : B[0]; \ - SUM[1] = (A[1] < B[1]) ? A[1] : B[1]; \ - SUM[2] = (A[2] < B[2]) ? A[2] : B[2]; \ - SUM[3] = (A[3] < B[3]) ? A[3] : B[3]; \ + R[0] = (A[0] < B[0]) ? A[0] : B[0]; \ + R[1] = (A[1] < B[1]) ? A[1] : B[1]; \ + R[2] = (A[2] < B[2]) ? A[2] : B[2]; \ + R[3] = (A[3] < B[3]) ? A[3] : B[3]; \ } while (0) -#define VEC4_MAX(SUM, A, B) \ +#define VEC4_MAX(R, A, B) \ do { \ - SUM[0] = (A[0] > B[0]) ? A[0] : B[0]; \ - SUM[1] = (A[1] > B[1]) ? A[1] : B[1]; \ - SUM[2] = (A[2] > B[2]) ? A[2] : B[2]; \ - SUM[3] = (A[3] > B[3]) ? A[3] : B[3]; \ + R[0] = (A[0] > B[0]) ? A[0] : B[0]; \ + R[1] = (A[1] > B[1]) ? A[1] : B[1]; \ + R[2] = (A[2] > B[2]) ? A[2] : B[2]; \ + R[3] = (A[3] > B[3]) ? A[3] : B[3]; \ } while (0) -- 2.30.2