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

SCM Repository

[diderot] Diff of /trunk/src/lib/common/eigen3x3.c
ViewVC logotype

Diff of /trunk/src/lib/common/eigen3x3.c

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

revision 1984, Fri Jul 27 23:50:39 2012 UTC revision 1985, Fri Jul 27 23:51:22 2012 UTC
# Line 42  Line 42 
42    
43  #define SUB(v,i)       (((Diderot_union3_t)(v)).r[i])  #define SUB(v,i)       (((Diderot_union3_t)(v)).r[i])
44    
 // OpenCL 1.0 does not specify the C representation of the host types  
 // for OpenCL vector types (e.g., cl_float4), so we have to handle this  
 // mechanism with a macro.  
 #if defined(CL_HOST_VECTORS_ARE_STRUCTS)  
 #  define VSUB(v,i)        (v).s[i]  
 #elif defined(CL_HOST_VECTORS_ARE_ARRAYS)  
 #  define VSUB(v,i)        (v)[i]  
 #else  
 # error unable to access elements of host vectors  
 #endif  
   
45  /*  /*
46  ** All the three given vectors span only a 2D space, and this finds  ** All the three given vectors span only a 2D space, and this finds
47  ** the normal to that plane.  Simply sums up all the pair-wise  ** the normal to that plane.  Simply sums up all the pair-wise

Legend:
Removed from v.1984  
changed lines
  Added in v.1985

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