Skip to content

Commit b9fa522

Browse files
committed
Use cstdint instead of stdint.h
1 parent b845330 commit b9fa522

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/gui/widgets/memory_observer.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919

2020
#pragma once
2121

22-
#include <stdint.h>
23-
2422
#include <array>
23+
#include <cstdint>
2524
#include <stdexcept>
2625
#include <vector>
2726

2827
#include "imgui.h"
2928
#if defined(__i386__) || defined(_M_IX86) || defined(__x86_64) || defined(_M_AMD64)
30-
#define MEMORY_OBSERVER_X86 // Do not include immintrin/xbyak or use avx intrinsics unless we're compiling for x86
29+
#define MEMORY_OBSERVER_X86 // Do not include immintrin/xbyak or use avx intrinsics unless we're compiling for x86
3130
#include "immintrin.h"
3231
#endif
3332

@@ -78,7 +77,7 @@ class MemoryObserver {
7877
* Pattern search.
7978
*/
8079

81-
#ifdef MEMORY_OBSERVER_X86
80+
#ifdef MEMORY_OBSERVER_X86
8281
template <int bufferSize>
8382
static __m256i avx2_getShuffleResultsFor(const std::array<uint8_t, bufferSize>& buffer,
8483
std::array<uint8_t, 32>& extendedBuffer, int mask) {
@@ -158,12 +157,12 @@ class MemoryObserver {
158157
}
159158
}
160159
static bool all_equal(__m256i input);
161-
#else
160+
#else
162161
template <int bufferSize>
163162
void simd_populateAddressList(const uint8_t* memData, uint32_t memBase, uint32_t memSize) {
164-
throw std::runtime_error("SIMD pattern searching is not supported on this platform! This shouldn't have been called!");
163+
throw std::runtime_error("SIMD pattern searching is not supported on this platform!");
165164
}
166-
#endif // MEMORY_OBSERVER_X86
165+
#endif // MEMORY_OBSERVER_X86
167166

168167
static std::vector<uint8_t> getShuffleResultsFor(const std::vector<uint8_t>& buffer);
169168
static bool matchesPattern(const std::vector<uint8_t>& buffer, const std::vector<uint8_t>& patternShuffleResults);

0 commit comments

Comments
 (0)