|
BeBOP Optimized Sparse Kernel Interface Library
1.0.1h
|
Macros for typed block memory copy operations. More...
#include <string.h>Go to the source code of this file.
Defines | |
| #define | INC_OSKI_MEMCPY_H |
| oski/memcpy.h included. | |
| #define | oski_CopyMem(dest, src, elem_type, num_elems) |
| Copy a typed block of consecutive memory elements from one buffer to another. | |
Functions | |
| char * | oski_DuplicateString (const char *s) |
| Returns a newly allocated copy of the NULL-terminated string 's'. | |
Macros for typed block memory copy operations.
| #define INC_OSKI_MEMCPY_H |
oski/memcpy.h included.
| #define oski_CopyMem | ( | dest, | |
| src, | |||
| elem_type, | |||
| num_elems | |||
| ) |
memcpy((void *)(dest), (const void *)(src), \ (num_elems) * sizeof(elem_type))
Copy a typed block of consecutive memory elements from one buffer to another.
This implementation is simply a wrapper around memcpy.
| [out] | dest | Buffer into which to copy. |
| [in] | src | Buffer from which to copy. |
| [in] | num_elems | Integer number of logical elements. |
| [in] | elem_type | Type of each logical element. |
Referenced by array_Duplicate(), CalcMinMaxMedian(), ConvertFullBlocksFromCSR(), ConvertToCSR(), ConvertToCSR_Sorted(), CopyPointers(), InitSubmatCSR(), keropts_Process(), MatReprMultCore(), MBCSR_InitSubVecView(), MeasureStreamTimeCSC(), oski_ConvertMatReprToCSR(), oski_CopyMat(), oski_CopyMatRepr(), oski_CreateMatReprFromCSR(), oski_DuplicateString(), oski_ExpandCSRToFull(), oski_MatReprMult(), oski_MatReprTransMatReprMult(), oski_MatReprTrisolve(), oski_RecordCalls(), and oski_TransposeCSR().
| char* oski_DuplicateString | ( | const char * | s | ) |
Returns a newly allocated copy of the NULL-terminated string 's'.
| [in] | s | String to duplicate. |
References oski_CopyMem, oski_DuplicateString(), and oski_Malloc.
Referenced by ConvertLuaMat(), ConvertLuaMatToCSR(), CreateLuaMatObj(), NewLuaMat(), oski_CopyMat(), oski_CreateLuaMatReprGeneric2IndexFromCSR(), oski_CreateLuaMatReprGenericFromCSR(), oski_DuplicateString(), oski_GetMatTransforms(), oski_RegisterHeur(), oski_RegisterMatType(), and oski_ReplaceTunedMatRepr().
1.7.6.1