2018-04-23 16:08:57 +02:00
|
|
|
/*
|
2020-02-04 08:53:51 +01:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-09-18 09:11:08 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
2018-04-23 16:08:57 +02:00
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/os_interface/linux/allocator_helper.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/helpers/aligned_memory.h"
|
|
|
|
|
#include "shared/source/helpers/basic_math.h"
|
2018-04-23 16:08:57 +02:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2019-04-18 15:30:47 +02:00
|
|
|
|
|
|
|
|
size_t getSizeToReserve() {
|
2019-11-27 18:00:52 +01:00
|
|
|
return (maxNBitValue(47) + 1) / 4;
|
2019-04-18 15:30:47 +02:00
|
|
|
}
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|