MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / round_up

Function round_up

Source/UnitTest/test_simd.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static unsigned int round_up(unsigned int x)
81{
82 unsigned int remainder = x % ASTCENC_SIMD_WIDTH;
83 if (!remainder)
84 {
85 return x;
86 }
87
88 return x - remainder + ASTCENC_SIMD_WIDTH;
89}
90
91/** @brief Test VLA loop limit round down. */
92TEST(SuiteMisc, RoundDownVLA)

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected