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

SCM Repository

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

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

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

revision 2839, Tue Nov 25 19:45:46 2014 UTC revision 2840, Tue Nov 25 19:46:43 2014 UTC
# Line 89  Line 89 
89      Diderot_union4_t uv = __extension__ (Diderot_union4_t)(u*v);      Diderot_union4_t uv = __extension__ (Diderot_union4_t)(u*v);
90      return uv.r[0] + uv.r[1] + uv.r[2] + uv.r[3];      return uv.r[0] + uv.r[1] + uv.r[2] + uv.r[3];
91  }  }
92  /*  
93  STATIC_INLINE Diderot_real_t length4 (Diderot_vec4_t v)  STATIC_INLINE Diderot_real_t length4 (Diderot_vec4_t v)
94  {  {
95      return SQRT(dot4(v, v));      return SQRT(dot4(v, v));
# Line 98  Line 98 
98  STATIC_INLINE Diderot_vec4_t normalize4 (Diderot_vec4_t v)  STATIC_INLINE Diderot_vec4_t normalize4 (Diderot_vec4_t v)
99  {  {
100      return scale4(1.0 / length4(v), v);      return scale4(1.0 / length4(v), v);
101  }*/  }
102    
103  #endif /* !_DIDEROT_INLINE_VEC4_H_ */  #endif /* !_DIDEROT_INLINE_VEC4_H_ */

Legend:
Removed from v.2839  
changed lines
  Added in v.2840

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