Consider const_float_t obsolete - #25716
Conversation
|
"makes a bug difference" foreshadowing? |
The cogent exploration here is whether The old advice was that function calls are faster/smaller because it only requires 2 bytes on AVR to pass a In testing the difference tonight, the code size is 90 bytes smaller using the An isolated test shows no apparent code size difference when passing by value or by reference, but I have not yet looked at the assembler output to compare the difference in the resulting assembler code. If the AVR compiler has become smarter and can find the best balance of faster/smaller then the |
8aac7b6 to
7e515e2
Compare
7e515e2 to
e370838
Compare
0306534 to
205da4d
Compare
205da4d to
c8e41c4
Compare
c8e41c4 to
5829dea
Compare
1bb6412 to
56d7511
Compare
c624e13 to
e6f1b07
Compare
56d7511 to
6f22a80
Compare
9c65146 to
4f65466
Compare
c792921 to
37fb26b
Compare
0f1df8b to
37d77d6
Compare
37d77d6 to
aa44542
Compare
6f22a80 to
38903f7
Compare
38903f7 to
a44a62b
Compare
4354891 to
efa1758
Compare
a44a62b to
30410e3
Compare
a81f4c2 to
36a146d
Compare
36a146d to
17a87c6
Compare
3791e7d to
6ea4a16
Compare
17a87c6 to
e802a20
Compare
e802a20 to
ee0b8be
Compare
Since AVR has 16-bit pointers some calls and code size may be optimized using a
const float&instead of aconst float. Whether this makes a big difference in practice is yet to be widely tested, but this PR appliesconst_float_tfor consistency anyway.