diff options
author | Mark Kriegsman <kriegsman@tr.org> | 2015-01-15 08:55:19 +0300 |
---|---|---|
committer | Mark Kriegsman <kriegsman@tr.org> | 2015-01-15 08:55:19 +0300 |
commit | 83716a9a0341f96cc68e5cfba55c46837563736e (patch) | |
tree | 5cfd060bc54380a319da83cd26c181f53b37f117 | |
parent | 9546b2b7ae5f0d312116737760675cc3e0f09526 (diff) |
Silence a warning in scale16by8 in AVR asm.
-rw-r--r-- | lib8tion.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -897,12 +897,12 @@ LIB8STATIC uint16_t scale16by8( uint16_t i, fract8 scale ) #elif SCALE16BY8_AVRASM == 1 LIB8STATIC uint16_t scale16by8( uint16_t i, fract8 scale ) { - uint16_t result; + uint16_t result = 0; asm volatile( // result.A = HighByte(i.A x j ) " mul %A[i], %[scale] \n\t" " mov %A[result], r1 \n\t" - " clr %B[result] \n\t" + //" clr %B[result] \n\t" // result.A-B += i.B x j " mul %B[i], %[scale] \n\t" |