• Justin Chadwell's avatar
    Fix Coverity #261967, Infinite loop · 9624c0a9
    Justin Chadwell authored
    
    
    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: default avatarJustin Chadwell <justin.chadwell@arm.com>
    9624c0a9
arm32_aeabi_divmod.c 4.15 KB