Developer Reference

Contents

mkl_realloc

Changes the size of memory buffer allocated by
mkl_malloc
/
mkl_calloc
.

Syntax

void
*
mkl_realloc
(
void
*ptr
,
size_t
size
);
Include Files
  • mkl.h
Input Parameters
Name
Type
Description
ptr
void*
Pointer to the memory buffer allocated by the
mkl_malloc
or
mkl_calloc
function or a
NULL
pointer.
size
size_t
New size of the buffer.
Description
The function changes the size of the memory buffer allocated by the
mkl_malloc
or
mkl_calloc
function to
size
bytes. The first bytes of the returned buffer up to the minimum of the old and new sizes keep the content of the input buffer. The returned memory buffer can have a different location than the input one. If
ptr
is
NULL
, the function works as
mkl_malloc
.
Return Values
Name
Type
Description
a_ptr
void*
  • Pointer to the re-allocated buffer if re-allocation is successful.
  • NULL
    if re-allocation is unsuccessful.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804