Skip to content

Commit

Permalink
Marked: "stringziller.h" as extern "C"
Browse files Browse the repository at this point in the history
  • Loading branch information
WillisMedwell committed Feb 6, 2024
1 parent 044ce27 commit d470791
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benchmark/BenchSimd.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@

#ifndef EMSCRIPTEN
#include "stringzilla.h"
#endif

#include "Utily/Utily.hpp"

#include <benchmark/benchmark.h>
Expand All @@ -12,6 +7,12 @@
#include <numeric>
#include <ranges>

#ifndef EMSCRIPTEN
extern "C" {
#include "stringzilla.h"
}
#endif

#if 1

auto all_a(size_t max) -> std::string {
Expand Down Expand Up @@ -68,7 +69,6 @@ static void BM_Uty_find_first_of_char(benchmark::State& state) {
}
BENCHMARK(BM_Uty_find_first_of_char);


static void BM_Std_find_first_of_chars(benchmark::State& state) {
const auto data = std::to_array({ 'z', 'o', 'n' });
for (auto _ : state) {
Expand Down

0 comments on commit d470791

Please sign in to comment.