From ee518cfe12554c7d09e5d0455420fd8e7047025d Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 16 Apr 2012 10:46:47 -0400
Subject: [PATCH] Add _divider to complex header. (by Evan Richards)

---
 src/cl/pyopencl-complex.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/cl/pyopencl-complex.h b/src/cl/pyopencl-complex.h
index b27df195..6601eb4a 100644
--- a/src/cl/pyopencl-complex.h
+++ b/src/cl/pyopencl-complex.h
@@ -92,6 +92,11 @@
        (a + b * ratio) / denom, \
        (c + d * ratio) / denom); \
   } \
+  \
+  TP TPROOT##_divider(TP a, REAL_TP b) \
+  { \
+    return a/b; \
+  } \
   \
   TP TPROOT##_pow(TP a, TP b) \
   { \
-- 
GitLab