mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
764f24266e
This change restructures the loop, to help the compiler generate shorter code (because now only the LSB of the data byte is checked and subsequent bytes are shifted down one by one, it can use th "skip if bit set" instruction). Furthermore, it puts most attributes in local variables, which causes the compiler to put them into registers. This makes the timing-critical part of the code smaller, making it easier to provide accurate timings. On an Arduino uno using gcc 4.3, this saves 58 bytes. On gcc 4.8, this saves 14 bytes. |
||
---|---|---|
.. | ||
arduino | ||
tools |