Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed May 14, 2024
1 parent bea8af2 commit 1830ee1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion benchmark/src/benchmarks/benchmark.assembler.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <benchmark/benchmark.h>
#include <functional>
#include <testdata/instructions.hpp>
#include <zasm/testdata/x86/instructions.hpp>
#include <zasm/zasm.hpp>

namespace zasm::benchmarks
Expand Down
2 changes: 1 addition & 1 deletion benchmark/src/benchmarks/benchmark.formatter.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <benchmark/benchmark.h>
#include <functional>
#include <testdata/instructions.hpp>
#include <zasm/formatter/formatter.hpp>
#include <zasm/testdata/x86/instructions.hpp>
#include <zasm/zasm.hpp>

namespace zasm::benchmarks
Expand Down
5 changes: 2 additions & 3 deletions benchmark/src/benchmarks/benchmark.instructioninfo.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <benchmark/benchmark.h>
#include <functional>
#include <testdata/instructions.hpp>
#include <zasm/testdata/x86/instructions.hpp>
#include <zasm/x86/meta.hpp>
#include <zasm/zasm.hpp>

Expand Down Expand Up @@ -39,8 +39,7 @@ namespace zasm::benchmarks
}

state.counters["InstructionInfos"] = benchmark::Counter(
static_cast<double>(numInstructions), benchmark::Counter::kIsRate,
benchmark::Counter::OneK::kIs1000);
static_cast<double>(numInstructions), benchmark::Counter::kIsRate, benchmark::Counter::OneK::kIs1000);
}
BENCHMARK(BM_InstructionInfo)->Unit(benchmark::kMillisecond);

Expand Down
8 changes: 3 additions & 5 deletions benchmark/src/benchmarks/benchmark.serialization.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <benchmark/benchmark.h>
#include <functional>
#include <testdata/instructions.hpp>
#include <zasm/testdata/x86/instructions.hpp>
#include <zasm/zasm.hpp>

namespace zasm::benchmarks
Expand Down Expand Up @@ -102,12 +102,10 @@ namespace zasm::benchmarks
}

state.counters["BytesEncoded"] = benchmark::Counter(
static_cast<double>(numBytesEncoded), benchmark::Counter::kIsRate,
benchmark::Counter::OneK::kIs1024);
static_cast<double>(numBytesEncoded), benchmark::Counter::kIsRate, benchmark::Counter::OneK::kIs1024);

state.counters["Instructions"] = benchmark::Counter(
static_cast<double>(numInstructions), benchmark::Counter::kIsRate,
benchmark::Counter::OneK::kIs1000);
static_cast<double>(numInstructions), benchmark::Counter::kIsRate, benchmark::Counter::OneK::kIs1000);
}
BENCHMARK_TEMPLATE(BM_SerializationWithLabels, 128)->Unit(benchmark::kMillisecond);

Expand Down
2 changes: 1 addition & 1 deletion tests/src/tests/tests.instructions.x64.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "../testutils.hpp"

#include <gtest/gtest.h>
#include <testdata/instructions.hpp>
#include <zasm/testdata/x86/instructions.hpp>
#include <zasm/zasm.hpp>

namespace zasm::tests
Expand Down
2 changes: 1 addition & 1 deletion tests/src/tests/tests.saverestore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include <gtest/gtest.h>
#include <sstream>
#include <testdata/instructions.hpp>
#include <zasm/core/memorystream.hpp>
#include <zasm/program/saverestore.hpp>
#include <zasm/testdata/x86/instructions.hpp>
#include <zasm/zasm.hpp>

namespace zasm::tests
Expand Down

0 comments on commit 1830ee1

Please sign in to comment.