rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
aligned_alloc.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include "../platform/attributes.hpp"
6#include "../platform/dynamic_shared_object.h"
7
8#include <cstddef>
9
10namespace rexlib
11{
12
24REXLIB_API
25void* aligned_alloc(std::size_t size, std::size_t alignment) noexcept;
26
35void aligned_free(void* ptr) noexcept;
36
37} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
void aligned_free(void *ptr) noexcept
Release a memory block previously allocated with aligned_alloc.
void * aligned_alloc(std::size_t size, std::size_t alignment) noexcept
Allocate memory with an alignment specification.