Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/include/Diderot/inline-vec4.h
ViewVC logotype

Diff of /branches/pure-cfg/src/include/Diderot/inline-vec4.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 755, Thu Apr 7 15:03:21 2011 UTC revision 756, Thu Apr 7 15:06:23 2011 UTC
# Line 22  Line 22 
22      return __extension__ (vec4f_t){ a, b, c, d };      return __extension__ (vec4f_t){ a, b, c, d };
23  }  }
24    
25    STATIC_INLINE vec4f_t scale4f (float s, vec4f_t v)
26    {
27        return vec4f(s, s, s, s) * v;
28    }
29    
30    STATIC_INLINE vec4f_t lerp4f (vec4f_t a, vec4f_t b, float t)
31    {
32        return a + scale4f(t, b - a);
33    }
34    
35  STATIC_INLINE float dot4f (vec4f_t u, vec4f_t v)  STATIC_INLINE float dot4f (vec4f_t u, vec4f_t v)
36  {  {
37      union4f_t uv = __extension__ (union4f_t)(u*v);      union4f_t uv = __extension__ (union4f_t)(u*v);

Legend:
Removed from v.755  
changed lines
  Added in v.756

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0