Files
compute-runtime/runtime/dll/linux/allocator_helper.cpp
Filip Hazubski 0193b3ea69 Change maxNBitValue to a constexpr function
Now maxNBitValue can be used with run time variables.

Change-Id: I323071400305e05e6303a33e24e90c521246d73f
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-28 14:40:16 +01:00

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