Skip to content

Commit c3becfa

Browse files
committed
Format
1 parent 0775426 commit c3becfa

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/taylor_future_coroutine_hpx.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#include <string>
1414
#include <vector>
1515

16-
#ifdef __GNUC__
16+
#ifdef __GNUC__
1717
#ifndef __APPLE__
18-
#include <coroutine>
18+
#include <coroutine>
1919
#endif
2020
#endif
2121

@@ -46,7 +46,8 @@ hpx::future<double> run(size_t n, size_t amount, double x) {
4646

4747
auto futures2 = co_await std::move(hpx::when_all(std::move(futures)));
4848

49-
for (size_t i = 0; i < futures2.size(); i++) result += co_await std::move(futures2[i]);
49+
for (size_t i = 0; i < futures2.size(); i++)
50+
result += co_await std::move(futures2[i]);
5051

5152
co_return result;
5253
}

src/taylor_sender_receiver_hpx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ int main(int args, char** argv) {
5454

5555
auto start = std::chrono::high_resolution_clock::now();
5656
double result = run(n, threads, x);
57-
auto end = std::chrono::high_resolution_clock::now();
57+
auto end = std::chrono::high_resolution_clock::now();
5858
std::chrono::duration<double> diff = end - start;
5959
std::cout << threads << "," << diff.count() << std::endl;
6060

0 commit comments

Comments
 (0)