| 78 | } |
| 79 | |
| 80 | static 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. */ |
| 92 | TEST(SuiteMisc, RoundDownVLA) |