| 72 | } |
| 73 | |
| 74 | static 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. */ |
| 86 | TEST(SuiteMisc, RoundDownVLA) |