Skip to content

Commit fc5dea4

Browse files
author
Raghuveer Devulapalli
committed
run clang-format
1 parent b66f426 commit fc5dea4

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

benchmarks/bench-argsort.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ static void avx512argsort(benchmark::State &state, Args &&...args)
8484
}
8585
}
8686

87-
#define BENCH_BOTH(type)\
88-
BENCH(avx512argsort, type)\
89-
BENCH(stdargsort, type)\
87+
#define BENCH_BOTH(type) \
88+
BENCH(avx512argsort, type) \
89+
BENCH(stdargsort, type)
9090

9191
BENCH_BOTH(int64_t)
9292
BENCH_BOTH(uint64_t)

benchmarks/bench-qsort-common.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
})))
2020

2121
#define BENCH(func, type) \
22-
MY_BENCHMARK_CAPTURE( \
23-
func, type, random_5k, 5000, std::string("random")); \
22+
MY_BENCHMARK_CAPTURE(func, type, random_5k, 5000, std::string("random")); \
2423
MY_BENCHMARK_CAPTURE( \
2524
func, type, random_100k, 100000, std::string("random")); \
2625
MY_BENCHMARK_CAPTURE( \
@@ -34,5 +33,4 @@
3433
MY_BENCHMARK_CAPTURE( \
3534
func, type, reverse_10k, 10000, std::string("reverse"));
3635

37-
3836
#endif

benchmarks/bench-qsort.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ static void avx512qsort(benchmark::State &state, Args &&...args)
8080
}
8181
}
8282

83-
#define BENCH_BOTH_QSORT(type)\
84-
BENCH(avx512qsort, type)\
83+
#define BENCH_BOTH_QSORT(type) \
84+
BENCH(avx512qsort, type) \
8585
BENCH(stdsort, type)
8686

8787
BENCH_BOTH_QSORT(uint64_t)

tests/test-partial-qsort.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ TYPED_TEST_P(avx512_partial_sort, test_ranges)
1111
int64_t nranges = 500;
1212

1313
if (__builtin_cpu_supports("avx512bw")) {
14-
if ((sizeof(TypeParam) == 2) && (!__builtin_cpu_supports("avx512vbmi2"))) {
14+
if ((sizeof(TypeParam) == 2)
15+
&& (!__builtin_cpu_supports("avx512vbmi2"))) {
1516
GTEST_SKIP() << "Skipping this test, it requires avx512_vbmi2";
1617
}
1718
std::vector<TypeParam> arr;

tests/test-qselect.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ TYPED_TEST_SUITE_P(avx512_select);
88
TYPED_TEST_P(avx512_select, test_random)
99
{
1010
if (__builtin_cpu_supports("avx512bw")) {
11-
if ((sizeof(TypeParam) == 2) && (!__builtin_cpu_supports("avx512vbmi2"))) {
11+
if ((sizeof(TypeParam) == 2)
12+
&& (!__builtin_cpu_supports("avx512vbmi2"))) {
1213
GTEST_SKIP() << "Skipping this test, it requires avx512_vbmi2";
1314
}
1415
std::vector<int64_t> arrsizes;
@@ -52,7 +53,8 @@ TYPED_TEST_P(avx512_select, test_random)
5253
TYPED_TEST_P(avx512_select, test_small_range)
5354
{
5455
if (__builtin_cpu_supports("avx512bw")) {
55-
if ((sizeof(TypeParam) == 2) && (!__builtin_cpu_supports("avx512vbmi2"))) {
56+
if ((sizeof(TypeParam) == 2)
57+
&& (!__builtin_cpu_supports("avx512vbmi2"))) {
5658
GTEST_SKIP() << "Skipping this test, it requires avx512_vbmi2";
5759
}
5860
std::vector<int64_t> arrsizes;

tests/test-qsort.hpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ TYPED_TEST_SUITE_P(avx512_sort);
1313
TYPED_TEST_P(avx512_sort, test_random)
1414
{
1515
if (__builtin_cpu_supports("avx512bw")) {
16-
if ((sizeof(TypeParam) == 2) && (!__builtin_cpu_supports("avx512vbmi2"))) {
16+
if ((sizeof(TypeParam) == 2)
17+
&& (!__builtin_cpu_supports("avx512vbmi2"))) {
1718
GTEST_SKIP() << "Skipping this test, it requires avx512_vbmi2";
1819
}
1920
std::vector<int64_t> arrsizes;
@@ -42,7 +43,8 @@ TYPED_TEST_P(avx512_sort, test_random)
4243
TYPED_TEST_P(avx512_sort, test_reverse)
4344
{
4445
if (__builtin_cpu_supports("avx512bw")) {
45-
if ((sizeof(TypeParam) == 2) && (!__builtin_cpu_supports("avx512vbmi2"))) {
46+
if ((sizeof(TypeParam) == 2)
47+
&& (!__builtin_cpu_supports("avx512vbmi2"))) {
4648
GTEST_SKIP() << "Skipping this test, it requires avx512_vbmi2";
4749
}
4850
std::vector<int64_t> arrsizes;
@@ -73,7 +75,8 @@ TYPED_TEST_P(avx512_sort, test_reverse)
7375
TYPED_TEST_P(avx512_sort, test_constant)
7476
{
7577
if (__builtin_cpu_supports("avx512bw")) {
76-
if ((sizeof(TypeParam) == 2) && (!__builtin_cpu_supports("avx512vbmi2"))) {
78+
if ((sizeof(TypeParam) == 2)
79+
&& (!__builtin_cpu_supports("avx512vbmi2"))) {
7780
GTEST_SKIP() << "Skipping this test, it requires avx512_vbmi2";
7881
}
7982
std::vector<int64_t> arrsizes;
@@ -104,7 +107,8 @@ TYPED_TEST_P(avx512_sort, test_constant)
104107
TYPED_TEST_P(avx512_sort, test_small_range)
105108
{
106109
if (__builtin_cpu_supports("avx512bw")) {
107-
if ((sizeof(TypeParam) == 2) && (!__builtin_cpu_supports("avx512vbmi2"))) {
110+
if ((sizeof(TypeParam) == 2)
111+
&& (!__builtin_cpu_supports("avx512vbmi2"))) {
108112
GTEST_SKIP() << "Skipping this test, it requires avx512_vbmi2";
109113
}
110114
std::vector<int64_t> arrsizes;

0 commit comments

Comments
 (0)