diff options
Diffstat (limited to 'vector.h')
-rw-r--r-- | vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -14,3 +14,8 @@ typedef double double4 __attribute__ ((vector_size (sizeof (double)*4))); typedef unsigned int uint2 __attribute__ ((vector_size (sizeof (unsigned int)*2))); #endif +inline double4 vector_d4 (const double c[4]) { + return (double4) { c[0], c[1], c[2], c[3] }; +} + + |