MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / conditional_aligned_malloc

Function conditional_aligned_malloc

include/Eigen/Eigen/src/Core/util/Memory.h:281–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 * On allocation error, the returned pointer is null, and a std::bad_alloc is thrown.
280 */
281template<bool Align> EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc(std::size_t size)
282{
283 return aligned_malloc(size);
284}
285
286template<> EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc<false>(std::size_t size)
287{

Callers

nothing calls this directly

Calls 1

aligned_mallocFunction · 0.85

Tested by

no test coverage detected