SCM Repository
Diff of /branches/vis12/src/lib/common/eigen2x2.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 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 | ** | ** |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |