From 55386cb28e2512804f1c09097be8348f64ca8c00 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 27 May 2015 21:54:45 +0200 Subject: variations: Fully vectorize pdj --- math.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'math.h') diff --git a/math.h b/math.h index a7a658e..2c94b0b 100644 --- a/math.h +++ b/math.h @@ -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] }; +} + -- cgit v1.2.3