MCPcopy Create free account
hub / github.com/PX4/eigen / first_multiple

Function first_multiple

Eigen/src/Core/util/Memory.h:476–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474 */
475template<typename Index>
476inline Index first_multiple(Index size, Index base)
477{
478 return ((size+base-1)/base)*base;
479}
480
481// std::copy is much slower than memcpy, so let's introduce a smart_copy which
482// use memcpy on trivial types, i.e., on types that does not require an initialization ctor.

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected