Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2016-05-05 10:25:04 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2016-05-05 10:25:04 +0300
commita5e92af84d6e1d37bee2b352bda5f56c4567ebd6 (patch)
tree2ab0e61812678dc8d4202fc9189ff79e1e3ede02
parent6edb83928fbd33416903423b3b12f9cda539618b (diff)
gcc register allocation appears to have changed a bit - make sure we get the right registers for andi. Fixes #302
-rw-r--r--lib8tion/trig8.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib8tion/trig8.h b/lib8tion/trig8.h
index c41a0acc..4907c6ff 100644
--- a/lib8tion/trig8.h
+++ b/lib8tion/trig8.h
@@ -194,8 +194,8 @@ LIB8STATIC uint8_t sin8_avr( uint8_t theta)
"swap %[xr1] \n\t"
"andi %[xr1], 0xF0 \n\t"
"or %[mx], %[xr1] \n\t"
- : [mx] "=r" (mx), [xr1] "=r" (xr1)
- : [m16] "r" (m16), [secoffset] "r" (secoffset)
+ : [mx] "=d" (mx), [xr1] "=d" (xr1)
+ : [m16] "d" (m16), [secoffset] "d" (secoffset)
);
int8_t y = mx + b;