Skip to content

Commit 2f372af

Browse files
committed
Clean header in benchmarks and tests
1 parent d3c929e commit 2f372af

24 files changed

Lines changed: 49 additions & 42 deletions

benchmark/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* The full license is in the file LICENSE, distributed with this software. *
1010
****************************************************************************/
1111

12+
#include "xsimd_benchmark.hpp"
13+
1214
#include <iostream>
1315
#include <map>
1416
#include <string>
1517

16-
#include "xsimd_benchmark.hpp"
17-
1818
void benchmark_operation()
1919
{
2020
// std::size_t size = 9984;

benchmark/xsimd_benchmark.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include "xsimd/arch/xsimd_scalar.hpp"
1616
#include "xsimd/xsimd.hpp"
17+
1718
#include <chrono>
1819
#include <string>
1920
#include <vector>

examples/mandelbrot.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
// https://github.com/ospray/tsimd/blob/master/benchmarks/mandelbrot.cpp
1414
// Author Jefferson Amstutz / intel
1515

16+
#include "pico_bench.hpp"
17+
18+
#include <xsimd/xsimd.hpp>
19+
1620
#include <cstdio>
1721
#include <iostream>
1822
#include <string>
1923
#include <vector>
2024

21-
#include "pico_bench.hpp"
22-
23-
#include <xsimd/xsimd.hpp>
24-
2525
// helper function to write the rendered image as PPM file
2626
inline void writePPM(const std::string& fileName,
2727
const int sizeX,

test/doc/explicit_use_of_an_instruction_set.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "xsimd/xsimd.hpp"
2+
23
#include <iostream>
34

45
namespace xs = xsimd;

test/doc/explicit_use_of_an_instruction_set_mean.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "xsimd/xsimd.hpp"
2+
23
#include <cstddef>
34
#include <vector>
45

test/doc/explicit_use_of_an_instruction_set_mean_aligned.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "xsimd/xsimd.hpp"
2+
23
#include <cstddef>
34
#include <vector>
45

test/doc/explicit_use_of_an_instruction_set_mean_arch_independent.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "xsimd/xsimd.hpp"
2+
23
#include <cstddef>
34

45
struct mean

test/doc/explicit_use_of_an_instruction_set_mean_tag_dispatch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "xsimd/xsimd.hpp"
2+
23
#include <cstddef>
34

45
template <class C, class Tag>

test/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
****************************************************************************/
1111
#ifndef EMSCRIPTEN
1212
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
13-
#include "doctest/doctest.h"
13+
#include <doctest/doctest.h>
1414
#else
1515

1616
#define DOCTEST_CONFIG_IMPLEMENT
17-
#include "doctest/doctest.h"
17+
#include <doctest/doctest.h>
1818
#include <emscripten/bind.h>
1919

2020
int run_tests()
@@ -28,4 +28,4 @@ EMSCRIPTEN_BINDINGS(my_module)
2828
emscripten::function("run_tests", &run_tests);
2929
}
3030

31-
#endif
31+
#endif

test/test_api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
#include "xsimd/xsimd.hpp"
1313
#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
1414

15+
#include "test_utils.hpp"
16+
1517
#include <functional>
1618
#include <numeric>
1719
#include <random>
1820

19-
#include "test_utils.hpp"
20-
2121
template <class B>
2222
struct xsimd_api_test
2323
{

0 commit comments

Comments
 (0)