From a433987441e09684fb7b6f6c75962fd128cbfdbd Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sun, 26 Feb 2017 10:18:45 +0100 Subject: Fixes division in the kernel for inversion of complex numbers --- src/kernels/common.opencl | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/kernels/common.opencl') diff --git a/src/kernels/common.opencl b/src/kernels/common.opencl index 0ce4f367..32e3fbb9 100644 --- a/src/kernels/common.opencl +++ b/src/kernels/common.opencl @@ -212,13 +212,6 @@ R"( #define MultiplySubtract(c, a, b) c -= a * b #endif -// The scalar division function: real-value only -#if PRECISION == 3232 || PRECISION == 6464 - #define DivideReal(c, a, b) c.x = a.x / b.x; c.y = a.y -#else - #define DivideReal(c, a, b) c = a / b -#endif - // The scalar division function: full division #if PRECISION == 3232 || PRECISION == 6464 #define DivideFull(c, a, b) singlereal num_x = (a.x * b.x) + (a.y * b.y); singlereal num_y = (a.y * b.x) - (a.x * b.y); singlereal denom = (b.x * b.x) + (b.y * b.y); c.x = num_x / denom; c.y = num_y / denom -- cgit v1.2.3