summaryrefslogtreecommitdiff
path: root/src/kernels/common.opencl
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernels/common.opencl')
-rw-r--r--src/kernels/common.opencl7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernels/common.opencl b/src/kernels/common.opencl
index 154265e4..818c725f 100644
--- a/src/kernels/common.opencl
+++ b/src/kernels/common.opencl
@@ -112,6 +112,13 @@ R"(
#define AXPBY(e, a, b, c, d) e = a*b + c*d
#endif
+// The complex conjugate operation for complex transforms
+#if PRECISION == 3232 || PRECISION == 6464
+ #define COMPLEX_CONJUGATE(value) value.x = value.x; value.y = -value.y
+#else
+ #define COMPLEX_CONJUGATE(value) value = value
+#endif
+
// =================================================================================================
// End of the C++11 raw string literal