SCM Repository
Diff of /trunk/src/lib/diderot.h
Parent Directory
|
Revision Log
|
Patch
revision 448, Thu Oct 21 15:23:02 2010 UTC | revision 449, Thu Oct 21 15:46:51 2010 UTC | |
---|---|---|
# | Line 121 | Line 121 |
121 | STATIC_INLINE bool Diderot_Inside3D (Diderot_vec3_t pos, Diderot_image3D_t *img, int s) | STATIC_INLINE bool Diderot_Inside3D (Diderot_vec3_t pos, Diderot_image3D_t *img, int s) |
122 | { | { |
123 | // NOTE: there might be a vectorized way to do this compare! | // NOTE: there might be a vectorized way to do this compare! |
124 | // cvtps2pi -- converts vector of floats to vector of int32_t values | |
125 | ||
126 | return ((s <= pos.f[0]) && (pos.f[0] < (img->size[0] - s)) | return ((s <= pos.f[0]) && (pos.f[0] < (img->size[0] - s)) |
127 | && (s <= pos.f[1]) && (pos.f[1] < (img->size[1] - s)) | && (s <= pos.f[1]) && (pos.f[1] < (img->size[1] - s)) |
128 | && (s <= pos.f[2]) && (pos.f[2] < (img->size[2] - s))); | && (s <= pos.f[2]) && (pos.f[2] < (img->size[2] - s))); |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |