summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2010-02-20 06:29:23 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2010-02-20 06:29:23 +0000
commit950b2dfa2c42e6d8e0d1af546efb9368d5b89dc3 (patch)
tree992c34a5a572cf1a3ede22849a64c8e2f3405091 /firmware
parent3716abba9274f544dd31cdf4e6c83a845bf2a801 (diff)
downloadrockbox-950b2dfa2c42e6d8e0d1af546efb9368d5b89dc3.tar.gz
rockbox-950b2dfa2c42e6d8e0d1af546efb9368d5b89dc3.tar.bz2
rockbox-950b2dfa2c42e6d8e0d1af546efb9368d5b89dc3.zip
Clarify comments in ARMv6 divider regarding special-case handling of large (high bit set) numerators.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24783 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/support-arm.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/support-arm.S b/firmware/target/arm/support-arm.S
index dd17e0f5f7..b4577f6e9b 100644
--- a/firmware/target/arm/support-arm.S
+++ b/firmware/target/arm/support-arm.S
@@ -244,7 +244,9 @@
tst \numerator, \numerator
smmla \divisor, \divisor, \inv, \divisor
/* Branch to large-numerator handler, or else use smmul if sign bit is not
- set. */
+ set. This wins on average with random numerators, and should be no
+ slower than using umull for small numerator, even if prediction fails.
+ */
bmi 40f
smmul \inv, \numerator, \divisor
#else