Fix Coverity #261967, Infinite loop
authorJustin Chadwell <justin.chadwell@arm.com>
Tue, 23 Jul 2019 13:56:48 +0000 (14:56 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Tue, 6 Aug 2019 12:06:03 +0000 (13:06 +0100)
commit9624c0a9e03ea01d3015beafb0a90cd9afd97eb0
tree0b67b9d653461d405c7ea0142b1ecb8ebc8bdce1
parentfc6b626c6b6d17993764db9bc14c7c8457835854
Fix Coverity #261967, Infinite loop

Coverity has identified that the __aeabi_imod function will loop forever
if the denominator is not a power of 2, which is probably not the
desired behaviour.

The functions in the rest of the file are compiler implementations of
division if ARMv7 does not implement division which is permitted by the
spec. However, while most of the functions in the file are documented
and referenced in other places online, __aeabi_uimod and __aeabi_imod
are not. For this reason, these functions have been removed from the
code base, which also removes the Coverity error.

Change-Id: I20066d72365329a8b03a5536d865c4acaa2139ae
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
lib/aarch32/arm32_aeabi_divmod.c