From 461df78a3f0fce26e171efffbee5ae54acdd3dfd Mon Sep 17 00:00:00 2001 From: paboyle Date: Thu, 25 Jan 2018 23:36:22 +0000 Subject: [PATCH] Better to use Zero(), and not zero static data --- lib/simd/Simd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/simd/Simd.h b/lib/simd/Simd.h index f7a19141..3d86126a 100644 --- a/lib/simd/Simd.h +++ b/lib/simd/Simd.h @@ -180,11 +180,11 @@ accelerator_inline void vstream(RealD &l, const RealD &r){ l=r;} class Zero{}; static Zero zero; -template accelerator_inline void zeroit(itype &arg){ arg=zero;}; +template accelerator_inline void zeroit(itype &arg) { arg=Zero();}; template<> accelerator_inline void zeroit(ComplexF &arg){ arg=0; }; template<> accelerator_inline void zeroit(ComplexD &arg){ arg=0; }; -template<> accelerator_inline void zeroit(RealF &arg){ arg=0; }; -template<> accelerator_inline void zeroit(RealD &arg){ arg=0; }; +template<> accelerator_inline void zeroit(RealF &arg) { arg=0; }; +template<> accelerator_inline void zeroit(RealD &arg) { arg=0; }; //////////////////////////////////////////////////////////