2018-04-23 16:08:57 +02:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-09-18 09:11:08 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
2018-04-23 16:08:57 +02:00
|
|
|
|
2019-02-27 11:39:32 +01:00
|
|
|
#include "runtime/os_interface/linux/allocator_helper.h"
|
|
|
|
|
|
2019-08-02 13:25:45 -07:00
|
|
|
#include "core/helpers/aligned_memory.h"
|
2019-05-13 12:53:40 +02:00
|
|
|
#include "core/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
|