C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

daal_memory.h
1 /* file: daal_memory.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Common definitions.
21 //--
22 */
23 
24 #ifndef __DAAL_MEMORY_H__
25 #define __DAAL_MEMORY_H__
26 
27 #include "services/daal_defines.h"
28 
29 namespace daal
30 {
35 namespace services
36 {
47 DAAL_EXPORT void *daal_malloc(size_t size, size_t alignment = DAAL_MALLOC_DEFAULT_ALIGNMENT);
48 
55 DAAL_EXPORT void *daal_calloc(size_t size, size_t alignment = DAAL_MALLOC_DEFAULT_ALIGNMENT);
56 
61 DAAL_EXPORT void daal_free(void *ptr);
62 
71 DAAL_DEPRECATED DAAL_EXPORT void daal_memcpy_s(void *dest, size_t numberOfElements, const void *src, size_t count);
72 
73 namespace internal
74 {
83 DAAL_EXPORT int daal_memcpy_s(void *dest, size_t destSize, const void *src, size_t srcSize);
84 }
87 DAAL_EXPORT float daal_string_to_float(const char * nptr, char ** endptr);
88 
89 DAAL_EXPORT double daal_string_to_double(const char * nptr, char ** endptr);
90 
91 DAAL_EXPORT int daal_int_to_string(char * buffer, size_t n, int value);
92 
93 DAAL_EXPORT int daal_double_to_string(char * buffer, size_t n, double value);
94 }
95 } // namespace daal
96 
97 #endif
daal::services::daal_calloc
DAAL_EXPORT void * daal_calloc(size_t size, size_t alignment=DAAL_MALLOC_DEFAULT_ALIGNMENT)
daal_defines.h
daal::services::daal_memcpy_s
DAAL_DEPRECATED DAAL_EXPORT void daal_memcpy_s(void *dest, size_t numberOfElements, const void *src, size_t count)
daal::services::daal_malloc
DAAL_EXPORT void * daal_malloc(size_t size, size_t alignment=DAAL_MALLOC_DEFAULT_ALIGNMENT)
daal::services::daal_free
DAAL_EXPORT void daal_free(void *ptr)
daal::algorithms::math::abs::value
Definition: abs_types.h:88

For more complete information about compiler optimizations, see our Optimization Notice.