mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Now maxNBitValue can be used with run time variables. Change-Id: I323071400305e05e6303a33e24e90c521246d73f Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
20 lines
334 B
C++
20 lines
334 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/linux/allocator_helper.h"
|
|
|
|
#include "core/helpers/aligned_memory.h"
|
|
#include "core/helpers/basic_math.h"
|
|
|
|
namespace NEO {
|
|
|
|
size_t getSizeToReserve() {
|
|
return (maxNBitValue(47) + 1) / 4;
|
|
}
|
|
|
|
} // namespace NEO
|