diff options
author | Zack Rusin <[email protected]> | 2007-10-03 10:31:42 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2007-10-03 10:33:38 -0400 |
commit | b46926c4beff4ac14ac0cf2e3bc52f8118ed4d2a (patch) | |
tree | caf4260b8d06a30866f58cc1c9d761a73f73566d /src/mesa/pipe/draw/draw_private.h | |
parent | cdd38d487a311e6c71b76382d428f5dc26caf067 (diff) |
Unify the definitions of the 4 component dot product into one
location.
Diffstat (limited to 'src/mesa/pipe/draw/draw_private.h')
-rw-r--r-- | src/mesa/pipe/draw/draw_private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_private.h b/src/mesa/pipe/draw/draw_private.h index ff38925fc07..b3f1c4d23ea 100644 --- a/src/mesa/pipe/draw/draw_private.h +++ b/src/mesa/pipe/draw/draw_private.h @@ -290,5 +290,15 @@ dup_vert( struct draw_stage *stage, return tmp; } +static INLINE float +dot4(const float *a, const float *b) +{ + float result = (a[0]*b[0] + + a[1]*b[1] + + a[2]*b[2] + + a[3]*b[3]); + + return result; +} #endif /* DRAW_PRIVATE_H */ |