Fixed assembler error in fix16_mul, had used 'or' instead of the correct 'orr' mnemonic.

This commit is contained in:
Flatmush 2011-03-14 21:02:43 +00:00
parent ccf378f1e0
commit 8f01005d11
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ fix16_t fix16_mul(int32_t inArg0, int32_t inArg1) {
#ifndef FIXMATH_NO_ROUNDING
"add %0, %0, #0x8000\n\t"
#endif
"mov %0, %0, LSR #16\n\t"
"or %0, %0, r0, LSL #16"
"mov %0, %0, lsr #16\n\t"
"orr %0, %0, r0, lsl #16"
: "=r"(res)
: "r"(inArg0), "r"(inArg1)
: "r0");