diff options
-rw-r--r-- | apps/codecs/lib/udiv32_arm.S | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/codecs/lib/udiv32_arm.S b/apps/codecs/lib/udiv32_arm.S index d080205f08..33ab7a43a5 100644 --- a/apps/codecs/lib/udiv32_arm.S +++ b/apps/codecs/lib/udiv32_arm.S | |||
@@ -243,16 +243,7 @@ udiv32_arm: | |||
243 | rsb \bits, \bits, #0 | 243 | rsb \bits, \bits, #0 |
244 | sub \inv, \inv, #4 | 244 | sub \inv, \inv, #4 |
245 | mov \divisor, \inv, lsr \bits | 245 | mov \divisor, \inv, lsr \bits |
246 | #if ARM_ARCH >= 6 | ||
247 | tst \numerator, \numerator | ||
248 | smmla \divisor, \divisor, \inv, \divisor | ||
249 | bmi 50f | ||
250 | smmul \inv, \numerator, \divisor | ||
251 | #else | ||
252 | mov \bits, #0 | ||
253 | smlal \bits, \divisor, \inv, \divisor | ||
254 | umull \bits, \inv, \numerator, \divisor | 246 | umull \bits, \inv, \numerator, \divisor |
255 | #endif | ||
256 | mla \divisor, \inv, \neg, \numerator | 247 | mla \divisor, \inv, \neg, \numerator |
257 | mov \quotient, \inv | 248 | mov \quotient, \inv |
258 | cmn \neg, \divisor, lsr #1 | 249 | cmn \neg, \divisor, lsr #1 |
@@ -281,16 +272,6 @@ udiv32_arm: | |||
281 | addcc \quotient, \quotient, #1 | 272 | addcc \quotient, \quotient, #1 |
282 | addpl \quotient, \quotient, #2 | 273 | addpl \quotient, \quotient, #2 |
283 | bx lr | 274 | bx lr |
284 | 50: | ||
285 | umull \bits, \inv, \numerator, \divisor | ||
286 | mla \divisor, \inv, \neg, \numerator | ||
287 | mov \quotient, \inv | ||
288 | cmn \neg, \divisor, lsr #1 | ||
289 | addcs \divisor, \divisor, \neg, lsl #1 | ||
290 | addcs \quotient, \quotient, #2 | ||
291 | cmn \neg, \divisor | ||
292 | addcs \quotient, \quotient, #1 | ||
293 | bx lr | ||
294 | #endif | 275 | #endif |
295 | .endm | 276 | .endm |
296 | 277 | ||