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

SCM Repository

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

Diff of /trunk/src/lib/common/eigen2x2.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 38  Line 38 
38    
39  #define SUB(v,i)       (((Diderot_union2_t)(v)).r[i])  #define SUB(v,i)       (((Diderot_union2_t)(v)).r[i])
40    
 // 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  
   
41  /*  /*
42  ** Eigensolver for symmetric 2x2 matrix:  ** Eigensolver for symmetric 2x2 matrix:
43  **  **

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