SCM Repository
Diff of /trunk/src/lib/common/eigen3x3.c
Parent Directory
|
Revision Log
|
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 |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |