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

Function adjust_down

arm_compute/core/IAccessWindow.h:51–56  ·  view source on GitHub ↗

Decrease @p required in steps of @p step until it's less than @p available. * * @param[in] required Number of required bytes. * @param[in] available Number of available bytes. * @param[in] step Step size used to decrease required bytes. * * @return Largest value smaller than @p available that is a multiple of @p step * **/

Source from the content-addressed store, hash-verified

49 *
50 **/
51inline int adjust_down(int required, int available, int step)
52{
53 ARM_COMPUTE_ERROR_ON(step <= 0);
54
55 return required - step * ((required - available + step - 1) / step);
56}
57
58/** Increase @p required in steps of @p step until it's greater than @p available.
59 *

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected