diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-05-27 21:54:45 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-27 21:54:45 +0200 |
commit | 55386cb28e2512804f1c09097be8348f64ca8c00 (patch) | |
tree | 696dd7c6b7e7831d7bb449a500d0984d857b5f31 /math.h | |
parent | 7500d3b40ebd24f32d8ae226aed65fabc28c7e8d (diff) | |
download | pucket-55386cb28e2512804f1c09097be8348f64ca8c00.tar.gz pucket-55386cb28e2512804f1c09097be8348f64ca8c00.tar.bz2 pucket-55386cb28e2512804f1c09097be8348f64ca8c00.zip |
variations: Fully vectorize pdj
Diffstat (limited to 'math.h')
-rw-r--r-- | math.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -151,3 +151,16 @@ inline double4 nearbyint_d4 (const double4 in) { nearbyint (in[3]), }; } + +inline double2 sin_d2 (const double2 in) { + return (double2) { sin (in[0]), sin (in[1]) }; +} + +inline double2 cos_d2 (const double2 in) { + return (double2) { cos (in[0]), cos (in[1]) }; +} + +inline double2 swap_d2 (const double2 in) { + return (double2) { in[1], in[0] }; +} + |