Lines Matching defs:count
158 * @brief Round a count down to the largest multiple of 8.
160 * @param count The unrounded value.
164 ASTCENC_SIMD_INLINE unsigned int round_down_to_simd_multiple_8(unsigned int count)
166 return count & static_cast<unsigned int>(~(8 - 1));
170 * @brief Round a count down to the largest multiple of 4.
172 * @param count The unrounded value.
176 ASTCENC_SIMD_INLINE unsigned int round_down_to_simd_multiple_4(unsigned int count)
178 return count & static_cast<unsigned int>(~(4 - 1));
182 * @brief Round a count down to the largest multiple of the SIMD width.
186 * @param count The unrounded value.
190 ASTCENC_SIMD_INLINE unsigned int round_down_to_simd_multiple_vla(unsigned int count)
192 return count & static_cast<unsigned int>(~(ASTCENC_SIMD_WIDTH - 1));
196 * @brief Round a count up to the largest multiple of the SIMD width.
200 * @param count The unrounded value.
204 ASTCENC_SIMD_INLINE unsigned int round_up_to_simd_multiple_vla(unsigned int count)
206 unsigned int multiples = (count + ASTCENC_SIMD_WIDTH - 1) / ASTCENC_SIMD_WIDTH;