Closed marcluque closed 3 months ago
I encountered a warning from CppCheck indicating the the following line of arm_divide_q31.c#L66 is violating CWE 758. CppCheck message:
cppcheck version="2.5" msg="Shifting signed 32-bit value by 31 bits is implementation-defined behaviour" cwe="758"
This will also hold for q15 I think.
I suppose that something like (numerator < 0) ^ (denominator < 0) could fix it?
(numerator < 0) ^ (denominator < 0)
Corrected in latest commit
Very nice, thanks for the quick turnaround! I'll close this issue then.
I encountered a warning from CppCheck indicating the the following line of arm_divide_q31.c#L66 is violating CWE 758. CppCheck message:
This will also hold for q15 I think.
I suppose that something like
(numerator < 0) ^ (denominator < 0)
could fix it?