Skip to content

Commit 5d28555

Browse files
committed
use const for look up tables
1 parent 12a5796 commit 5d28555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/kernels/pooling/mli_krn_reduce_sum2d_chw.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
******************************************************************************/
2525

2626
#define DIV_LUT_THRESHOLD 32
27-
static int16_t multiplier_lut[] = {
27+
static const int16_t multiplier_lut[] = {
2828
0, // 0
2929
0x0001, // 1
3030
0x0001, // 2
@@ -59,7 +59,7 @@ static int16_t multiplier_lut[] = {
5959
0x4210, // 31*
6060
};
6161

62-
static int8_t shift_lut[] = {
62+
static const int8_t shift_lut[] = {
6363
0, // 0
6464
0, // 1
6565
1, // 2

0 commit comments

Comments
 (0)