Vector Optimized Library of Kernels  3.0.0
Architecture-tuned implementations of math kernels
volk_malloc.h
Go to the documentation of this file.
1 /* -*- c -*- */
2 /*
3  * Copyright 2014, 2020 Free Software Foundation, Inc.
4  *
5  * This file is part of VOLK
6  *
7  * SPDX-License-Identifier: LGPL-3.0-or-later
8  */
9 
10 #ifndef INCLUDED_VOLK_MALLOC_H
11 #define INCLUDED_VOLK_MALLOC_H
12 
13 #include <stdlib.h>
14 #include <volk/volk_common.h>
15 
17 
42 VOLK_API void* volk_malloc(size_t size, size_t alignment);
43 
58 VOLK_API void volk_free(void* aptr);
59 
61 
62 #endif /* INCLUDED_VOLK_MALLOC_H */
VOLK_API
A function pointer to the fastest aligned implementation.
Definition: volk.tmpl.h:83
#define __VOLK_DECL_END
Definition: volk_common.h:94
#define __VOLK_DECL_BEGIN
Definition: volk_common.h:93
__VOLK_DECL_BEGIN VOLK_API void * volk_malloc(size_t size, size_t alignment)
Allocate size bytes of data aligned to alignment.
Definition: volk_malloc.c:38
VOLK_API void volk_free(void *aptr)
Free's memory allocated by volk_malloc.
Definition: volk_malloc.c:80