From 47a05c398b1804c6c904d0e42bccaf74eceafd72 Mon Sep 17 00:00:00 2001 From: feizheng Date: Tue, 23 Jul 2019 13:12:16 -0600 Subject: [PATCH] format source code --- library/src/device/real2complex.cpp | 4 ++-- library/src/hipfft.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/src/device/real2complex.cpp b/library/src/device/real2complex.cpp index 0631c19f..6fea4740 100644 --- a/library/src/device/real2complex.cpp +++ b/library/src/device/real2complex.cpp @@ -404,8 +404,8 @@ __global__ void real_1d_pre_post_process_kernel(size_t half_N, if(R2C) { - u = u*0.5; - v = v*0.5; + u = u * 0.5; + v = v * 0.5; } else { diff --git a/library/src/hipfft.cpp b/library/src/hipfft.cpp index 66e96998..29d4b4dc 100644 --- a/library/src/hipfft.cpp +++ b/library/src/hipfft.cpp @@ -1019,9 +1019,9 @@ hipfftResult hipfftGetVersion(int* version) sections.push_back(tmp_str); } - for(size_t i = 0; i < sections.size()-1; i++) + for(size_t i = 0; i < sections.size() - 1; i++) { - if (sections[i].size() == 1) + if(sections[i].size() == 1) result << "0" << sections[i]; else result << sections[i];