Added more Heap allocator stub functions.
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Moved platform api includes into mimir_impl.h
This commit is contained in:
36
src/heap.cpp
36
src/heap.cpp
@@ -32,19 +32,6 @@
|
||||
#include "../include/mimir.h"
|
||||
#include "mimir_impl.h"
|
||||
|
||||
#if defined(__unix__) || defined(__APPLE__) || defined(ANDROID)
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#include <Windows.h>
|
||||
#include <memoryapi.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <bit>
|
||||
@@ -59,4 +46,27 @@ Heap::~Heap()
|
||||
{
|
||||
}
|
||||
|
||||
bool Heap::init(size_t minSize, size_t maxSize)
|
||||
{
|
||||
return false; // not implemented
|
||||
}
|
||||
|
||||
// Allocate `size` bytes
|
||||
std::byte* Heap::alloc(size_t size)
|
||||
{
|
||||
return nullptr; // not implemented
|
||||
}
|
||||
|
||||
// Allocate `size` bytes, aligned to 16 bytes and padded to next 16-byte offset.
|
||||
std::byte* Heap::allocA16(size_t size)
|
||||
{
|
||||
return nullptr; // not implemented
|
||||
}
|
||||
|
||||
// Allocate `size` bytes, aligned to 64 bytes and padded to next 64-byte offset.
|
||||
std::byte* Heap::allocA64(size_t size)
|
||||
{
|
||||
return nullptr; // not implemented
|
||||
}
|
||||
|
||||
} // namespace mimir
|
||||
|
||||
Reference in New Issue
Block a user