MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / round_up

Function round_up

external/astc-encoder/Source/UnitTest/test_simd.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static unsigned int round_up(unsigned int x)
75{
76 unsigned int remainder = x % ASTCENC_SIMD_WIDTH;
77 if (!remainder)
78 {
79 return x;
80 }
81
82 return x - remainder + ASTCENC_SIMD_WIDTH;
83}
84
85/** @brief Test VLA loop limit round down. */
86TEST(SuiteMisc, RoundDownVLA)

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected