mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
8ea8e78471
commit
f17ac35108
@@ -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));
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user