From 8a86cbc7eb9b8bbb292c939efb7255420b811f17 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Thu, 21 May 2026 13:32:40 -0700 Subject: [PATCH 1/2] Fixed arm_nn_requantize for single rounding --- Include/arm_nnsupportfunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/arm_nnsupportfunctions.h b/Include/arm_nnsupportfunctions.h index 4a587c62..7c0dde38 100644 --- a/Include/arm_nnsupportfunctions.h +++ b/Include/arm_nnsupportfunctions.h @@ -1683,7 +1683,7 @@ __STATIC_FORCEINLINE int32_t arm_nn_requantize(const int32_t val, const int32_t const int64_t total_shift = 31 - shift; const int64_t new_val = val * (int64_t)multiplier; - int32_t result = new_val >> (total_shift - 1); + int64_t result = new_val >> (total_shift - 1); result = (result + 1) >> 1; return result; From e1620f4d7b9cc1031c508cb15b25c0ebb3257634 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Tue, 26 May 2026 15:48:42 -0700 Subject: [PATCH 2/2] Updated date/revision --- Include/arm_nnsupportfunctions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/arm_nnsupportfunctions.h b/Include/arm_nnsupportfunctions.h index 7c0dde38..23d818cb 100644 --- a/Include/arm_nnsupportfunctions.h +++ b/Include/arm_nnsupportfunctions.h @@ -21,8 +21,8 @@ * Title: arm_nnsupportfunctions.h * Description: Public header file of support functions for CMSIS NN Library * - * $Date: 6 Mars 2026 - * $Revision: V.22.9.0 + * $Date: 21 May 2026 + * $Revision: V.22.9.1 * * Target : Arm(R) M-Profile Architecture * -------------------------------------------------------------------- */