11// SPDX-License-Identifier: Apache-2.0
22// ----------------------------------------------------------------------------
3- // Copyright 2011-2023 Arm Limited
3+ // Copyright 2011-2025 Arm Limited
44//
55// Licensed under the Apache License, Version 2.0 (the "License"); you may not
66// use this file except in compliance with the License. You may obtain a copy
@@ -384,12 +384,12 @@ static void init_decimation_info_2d(
384384 }
385385
386386 // Initialize array tail so we can over-fetch with SIMD later to avoid loop tails
387- unsigned int texels_per_block_simd = round_up_to_simd_multiple_vla (texels_per_block);
388- for (unsigned int i = texels_per_block; i < texels_per_block_simd; i++)
387+ size_t texels_per_block_simd = round_up_to_simd_multiple_vla (texels_per_block);
388+ for (size_t i = texels_per_block; i < texels_per_block_simd; i++)
389389 {
390390 di.texel_weight_count [i] = 0 ;
391391
392- for (unsigned int j = 0 ; j < 4 ; j++)
392+ for (size_t j = 0 ; j < 4 ; j++)
393393 {
394394 di.texel_weight_contribs_float_tr [j][i] = 0 ;
395395 di.texel_weights_tr [j][i] = 0 ;
@@ -402,12 +402,12 @@ static void init_decimation_info_2d(
402402 unsigned int last_texel_count_wt = wb.texel_count_of_weight [weights_per_block - 1 ];
403403 uint8_t last_texel = di.weight_texels_tr [last_texel_count_wt - 1 ][weights_per_block - 1 ];
404404
405- unsigned int weights_per_block_simd = round_up_to_simd_multiple_vla (weights_per_block);
406- for (unsigned int i = weights_per_block; i < weights_per_block_simd; i++)
405+ size_t weights_per_block_simd = round_up_to_simd_multiple_vla (weights_per_block);
406+ for (size_t i = weights_per_block; i < weights_per_block_simd; i++)
407407 {
408408 di.weight_texel_count [i] = 0 ;
409409
410- for (unsigned int j = 0 ; j < max_texel_count_of_weight; j++)
410+ for (size_t j = 0 ; j < max_texel_count_of_weight; j++)
411411 {
412412 di.weight_texels_tr [j][i] = last_texel;
413413 di.weights_texel_contribs_tr [j][i] = 0 .0f ;
@@ -640,12 +640,12 @@ static void init_decimation_info_3d(
640640 }
641641
642642 // Initialize array tail so we can over-fetch with SIMD later to avoid loop tails
643- unsigned int texels_per_block_simd = round_up_to_simd_multiple_vla (texels_per_block);
644- for (unsigned int i = texels_per_block; i < texels_per_block_simd; i++)
643+ size_t texels_per_block_simd = round_up_to_simd_multiple_vla (texels_per_block);
644+ for (size_t i = texels_per_block; i < texels_per_block_simd; i++)
645645 {
646646 di.texel_weight_count [i] = 0 ;
647647
648- for (unsigned int j = 0 ; j < 4 ; j++)
648+ for (size_t j = 0 ; j < 4 ; j++)
649649 {
650650 di.texel_weight_contribs_float_tr [j][i] = 0 ;
651651 di.texel_weights_tr [j][i] = 0 ;
@@ -658,12 +658,12 @@ static void init_decimation_info_3d(
658658 int last_texel_count_wt = wb.texel_count_of_weight [weights_per_block - 1 ];
659659 uint8_t last_texel = di.weight_texels_tr [last_texel_count_wt - 1 ][weights_per_block - 1 ];
660660
661- unsigned int weights_per_block_simd = round_up_to_simd_multiple_vla (weights_per_block);
662- for (unsigned int i = weights_per_block; i < weights_per_block_simd; i++)
661+ size_t weights_per_block_simd = round_up_to_simd_multiple_vla (weights_per_block);
662+ for (size_t i = weights_per_block; i < weights_per_block_simd; i++)
663663 {
664664 di.weight_texel_count [i] = 0 ;
665665
666- for (int j = 0 ; j < max_texel_count_of_weight; j++)
666+ for (size_t j = 0 ; j < max_texel_count_of_weight; j++)
667667 {
668668 di.weight_texels_tr [j][i] = last_texel;
669669 di.weights_texel_contribs_tr [j][i] = 0 .0f ;
0 commit comments