Intel HEXL
Intel Homomorphic Encryption Acceleration Library, accelerating the modular arithmetic operations used in homomorphic encryption.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
intel::hexl::MallocStrategy Struct Reference

Allocater implementation using malloc and free. More...

#include <aligned-allocator.hpp>

Inheritance diagram for intel::hexl::MallocStrategy:
Inheritance graph
[legend]
Collaboration diagram for intel::hexl::MallocStrategy:
Collaboration graph
[legend]

Public Member Functions

void * allocate (size_t bytes_count) final
 Allocates byte_count bytes of memory. More...
 
void deallocate (void *p, size_t n) final
 Deallocate memory. More...
 
- Public Member Functions inherited from intel::hexl::AllocatorBase
virtual ~AllocatorBase () noexcept
 

Detailed Description

Allocater implementation using malloc and free.

Member Function Documentation

◆ allocate()

void* intel::hexl::MallocStrategy::allocate ( size_t  bytes_count)
inlinefinalvirtual

Allocates byte_count bytes of memory.

Parameters
[in]bytes_countNumber of bytes to allocate
Returns
A pointer to the allocated memory

Implements intel::hexl::AllocatorBase.

◆ deallocate()

void intel::hexl::MallocStrategy::deallocate ( void *  p,
size_t  n 
)
inlinefinalvirtual

Deallocate memory.

Parameters
[in]pPointer to memory to deallocate
[in]nNumber of bytes to deallocate

Implements intel::hexl::AllocatorBase.


The documentation for this struct was generated from the following file: