MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / check_aligned

Function check_aligned

arm_compute/core/utils/misc/Utility.h:201–204  ·  view source on GitHub ↗

Checks if a pointer complies with a given alignment * * @param[in] ptr Pointer to check * @param[in] alignment Alignment value * * @return True if the pointer is aligned else false */

Source from the content-addressed store, hash-verified

199 * @return True if the pointer is aligned else false
200 */
201inline bool check_aligned(void *ptr, const size_t alignment)
202{
203 return (reinterpret_cast<std::uintptr_t>(ptr) % alignment) == 0;
204}
205
206/** Convert string to lower case.
207 *

Callers 2

import_memoryMethod · 0.85
TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected