MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / assertEnclosed

Function assertEnclosed

src/library/blas/generic/solution_assert.c:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81#ifdef ASSERT_IMAGE_STEPS
82
83static __inline void
84assertEnclosed(size_t off1, size_t size1, size_t off2, size_t size2)
85{
86 bool enc = ((off1 >= off2) && (off1 < off2 + size2) &&
87 (off1 + size1 > off2) && (off1 + size1 <= off2 + size2));
88 assert(enc);
89}
90
91static __inline bool
92isIntersected(size_t off1, size_t size1, size_t off2, size_t size2)

Callers 1

assertImageSubstepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected