From af42b353c40521b416f8d297b468f7eb437d85d0 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Thu, 26 Jan 2023 01:50:53 +0100 Subject: [PATCH] Use acc::maybeConjugate for cpu code --- src/atrip/Equations.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/atrip/Equations.cxx b/src/atrip/Equations.cxx index a324cfb..039c5be 100644 --- a/src/atrip/Equations.cxx +++ b/src/atrip/Equations.cxx @@ -634,13 +634,10 @@ void getEnergySame _t_buffer, \ (int const*)&NoNo \ ) -#define MAYBE_CONJ(_conj, _buffer) \ - do { \ - for (size_t __i = 0; __i < NoNoNo; ++__i) { \ - _conj[__i] \ - = maybeConjugate(_buffer[__i]); \ - } \ - } while (0) +#define MAYBE_CONJ(_conj, _buffer) \ + acc::maybeConjugate((DataFieldType*)_conj, \ + (DataFieldType*)_buffer,\ + NoNoNo); #endif F one{1.0}, m_one{-1.0}, zero{0.0};