benchmark/src
Devon Loehr 24e0bd827a
Add enum value from newest Windows SDK (#1859)
* Add enum value from newest Windows SDK

Windows SDK version 10.0.26100.0 adds a cache type value, `CacheUnknown`. This adds a case for that type to `sysinfo.cc`, which will otherwise complain about the switch statement being non-exhaustive when building with the new SDK.

Since the value doesn't exist in prior SDK versions, we only add the case conditionally. The condition can be removed if we ever decide to bump up the required SDK version.

* Fix SDK version macro

Make sure the version macro we're using for the SDK is properly indicative of version 10.0.26100.0. Also fix formatting complains from the linter.

* Add space to satisfy formatter

Formatter insists on two space before a comment after a macro...

* Change preprocessor condition

Try detecting the current SDK version in a slightly different way.

* Replace NTDDI_WIN11_GE with its value

Undefined constants are treated as 0 by the preprocessor, which causes the check to trivially return true for previous SDK versions. Replace the constant with its value (from the newest SDK version) instead,
2024-10-02 09:40:03 +01:00
..
CMakeLists.txt clang-format fixes 2024-07-17 13:25:16 +01:00
arraysize.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
benchmark.cc Added the functionality for a dry run benchmark called through the cli argument --benchmark_dry_run. (#1851) 2024-09-12 15:50:52 +01:00
benchmark_api_internal.cc Move ProfilerManager Start/Stop routines closer to actual benchmark #1807 (#1818) 2024-08-01 08:42:41 +01:00
benchmark_api_internal.h Move ProfilerManager Start/Stop routines closer to actual benchmark #1807 (#1818) 2024-08-01 08:42:41 +01:00
benchmark_main.cc restore BENCHMARK_MAIN() (#1357) 2022-02-26 10:17:13 +00:00
benchmark_name.cc Fixed build issues on window (#1449) 2022-08-03 09:44:35 +01:00
benchmark_register.cc mitigate clang build warnings -Wconversion (#1763) 2024-03-07 12:19:56 +00:00
benchmark_register.h mitigate clang build warnings -Wconversion (#1763) 2024-03-07 12:19:56 +00:00
benchmark_runner.cc Added the functionality for a dry run benchmark called through the cli argument --benchmark_dry_run. (#1851) 2024-09-12 15:50:52 +01:00
benchmark_runner.h Added the functionality for a dry run benchmark called through the cli argument --benchmark_dry_run. (#1851) 2024-09-12 15:50:52 +01:00
check.cc Fixed build issues on window (#1449) 2022-08-03 09:44:35 +01:00
check.h Ensure we don't need benchmark installed to pass c++ feature checks (#1456) 2022-08-04 15:33:35 +01:00
colorprint.cc Issue1731 created console does not receive output (#1732) 2024-01-05 14:08:28 +00:00
colorprint.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
commandlineflags.cc Fix Clang-Tidy warnings readability-else-after-return (#1528) 2023-01-16 12:28:48 +00:00
commandlineflags.h annotate and export public symbols (#1321) 2022-02-14 10:48:53 +00:00
complexity.cc Use log2 now that NDK requires at least API 21 which includes it. (#1822) 2024-07-24 14:25:32 +01:00
complexity.h Fix typos found by codespell (#1519) 2023-01-10 12:25:32 +00:00
console_reporter.cc Issue1731 created console does not receive output (#1732) 2024-01-05 14:08:28 +00:00
counter.cc Fixed compiler warnings (#1697) 2023-11-10 10:09:50 +00:00
counter.h update header guard to match style 2019-11-25 13:05:13 +00:00
csv_reporter.cc Make json and csv output consistent. (#1662) 2023-09-26 13:43:23 +01:00
cycleclock.h cycleclock: Fix type conversion to match function return type on riscv64 (#1802) 2024-06-11 13:37:35 +01:00
internal_macros.h Remove COMPILER_IBMXL macro for z/OS (#1777) 2024-04-03 10:26:33 +01:00
json_reporter.cc fix typo in GetBenchmarkVersion() (#1755) 2024-02-12 16:56:58 +00:00
log.h remove old-style (C-style) casts (#1614) 2023-06-22 01:35:44 +03:00
mutex.h prefix macros to avoid clashes (#1186) 2021-06-24 18:21:59 +01:00
perf_counters.cc chore: update perf_counters.cc (#1831) 2024-08-05 10:05:40 +01:00
perf_counters.h perf_counters: Initialize once only when needed (#1656) 2023-08-24 10:04:09 +01:00
re.h Fix a typo in regex choice (#1610) 2023-06-19 08:51:48 +01:00
reporter.cc Support for QuRT OS (Hexagon RTOS) (#1497) 2022-10-04 20:43:27 +01:00
statistics.cc mitigate clang build warnings -Wconversion (#1763) 2024-03-07 12:19:56 +00:00
statistics.h Fix typos found by codespell (#1519) 2023-01-10 12:25:32 +00:00
string_util.cc mitigate clang build warnings -Wconversion (#1763) 2024-03-07 12:19:56 +00:00
string_util.h bug: Inconsistent suffixes console reporter 1009 (#1631) 2023-08-01 08:47:09 +01:00
sysinfo.cc Add enum value from newest Windows SDK (#1859) 2024-10-02 09:40:03 +01:00
thread_manager.h [FR] state.SkipWithMessage #963 (#1564) 2023-03-08 18:24:48 +00:00
thread_timer.h prefix macros to avoid clashes (#1186) 2021-06-24 18:21:59 +01:00
timers.cc Improve compatibility with Hexagon hardware (#1785) 2024-05-23 20:08:54 +03:00
timers.h Improve compatibility with Hexagon hardware (#1785) 2024-05-23 20:08:54 +03:00