Skip to content

Commit 2726369

Browse files
committed
include lol
1 parent 009200a commit 2726369

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

benchmark/atoi-corpus.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "atoi.h"
2-
32
#include <vector>
43
#include <string>
54
#include <cstring>
65
#include <random>
6+
#include <zoo/pp/platform.h>
77

88
struct Corpus8DecimalDigits {
99
std::vector<int> asNumbers_;
@@ -120,7 +120,7 @@ struct CorpusStringLength {
120120
};
121121

122122

123-
#if ZOO_CONFIGURED_TO_USE_AVX
123+
#if ZOO_CONFIGURED_TO_USE_AVX()
124124
#define AVX2_STRLEN_CORPUS_X_LIST \
125125
X(ZOO_AVX, zoo::avx2_strlen)
126126
#else

benchmark/catch2swar-demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ TEST_CASE("Atoi benchmarks", "[atoi][swar]") {
3636
REQUIRE(fromLIBC_STRLEN == fromZOO_NATURAL_STRLEN);
3737
REQUIRE(fromZOO_NATURAL_STRLEN == fromZOO_MANUAL_STRLEN);
3838
REQUIRE(fromGENERIC_GLIBC_STRLEN == fromZOO_NATURAL_STRLEN);
39-
#if ZOO_CONFIGURED_TO_USE_AVX
39+
#if ZOO_CONFIGURED_TO_USE_AVX()
4040
REQUIRE(fromZOO_AVX == fromZOO_STRLEN);
4141
#endif
4242

inc/zoo/pp/platform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#define ZOO_PLATFORM_MACROS_H
33

44
#ifdef __AVX2__
5-
#define ZOO_CONFIGURED_TO_USE_AVX 1
5+
#define ZOO_CONFIGURED_TO_USE_AVX() 1
66
#else
7-
#define ZOO_CONFIGURED_TO_USE_AVX 0
7+
#define ZOO_CONFIGURED_TO_USE_AVX() 0
88
#endif
99

1010
#ifdef _MSC_VER

0 commit comments

Comments
 (0)