From 8e275335f089d841ed7ec717759fbf955e21d057 Mon Sep 17 00:00:00 2001 From: Felix van Oost Date: Fri, 1 Mar 2024 00:03:56 +0000 Subject: [PATCH] Replace hex constants with 2's complement equivalents --- Source/FastMathFunctions/arm_divide_q15.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/FastMathFunctions/arm_divide_q15.c b/Source/FastMathFunctions/arm_divide_q15.c index 9c26e06ed..d087614df 100755 --- a/Source/FastMathFunctions/arm_divide_q15.c +++ b/Source/FastMathFunctions/arm_divide_q15.c @@ -74,11 +74,11 @@ arm_status arm_divide_q15(q15_t numerator, { if (sign) { - *quotient = 0x8000; + *quotient = -32768; } else { - *quotient = 0x7FFF; + *quotient = 32767; } return(ARM_MATH_NANINF); }