From 785edd1039065162c311afbca5b554353932627c Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Fri, 11 Oct 2019 09:48:25 +0100 Subject: [PATCH] CMSIS-NN: Implement bit-accurate S8 Softmax (non-DSP) --- Include/arm_math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/arm_math.h b/Include/arm_math.h index e9cdd35c..d1a658f2 100644 --- a/Include/arm_math.h +++ b/Include/arm_math.h @@ -382,10 +382,10 @@ extern "C" #include #include -#define Q31_MAX LONG_MAX +#define Q31_MAX (0x7FFFFFFFL) #define Q15_MAX SHRT_MAX #define Q7_MAX SCHAR_MAX -#define Q31_MIN LONG_MIN +#define Q31_MIN (0x80000000L) #define Q15_MIN SHRT_MIN #define Q7_MIN SCHAR_MIN