refactor: improve compilation time

Limit bitset includes,
stl bitset is slow to compile

Related-To: NEO-15390

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2025-10-03 15:56:03 +00:00
committed by Compute-Runtime-Automation
parent 8ea8e78471
commit f17ac35108
7 changed files with 13 additions and 8 deletions

View File

@@ -7,16 +7,14 @@
#pragma once
#include "shared/source/helpers/definitions/engine_group_types.h"
#include "shared/source/helpers/device_bitfield.h"
#include <cstddef>
#include <cstdint>
#include <limits>
inline constexpr bool is32bit = (sizeof(void *) == 4);
inline constexpr bool is64bit = (sizeof(void *) == 8);
inline constexpr NEO::DeviceBitfield systemMemoryBitfield(0b0);
constexpr uint64_t maxNBitValue(uint64_t n) {
return ((n == 64) ? std::numeric_limits<uint64_t>::max()
: ((1ULL << n) - 1));

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -12,4 +12,6 @@ namespace NEO {
using DeviceBitfield = std::bitset<4>;
inline constexpr DeviceBitfield systemMemoryBitfield(0b0);
} // namespace NEO