SCM Repository
Diff of /branches/vis12/src/lib/common/eigen3x3.c
Parent Directory
|
Revision Log
|
Patch
revision 2428, Wed Sep 18 18:04:04 2013 UTC | revision 2429, Wed Sep 18 20:05:57 2013 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 |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |