Closed SchrodingersGat closed 7 years ago
The PIC18 compiler (read, POS) does not optimize out the divide-by-8 in the bitfieldspecial.c routine.
Replacing /8 with >>3 results in a performance boost for the PIC compiler of 60%.
/8
>>3
@billvaglienti can you see any issues with this in general? Slightly reduces code readability but enforces good behavior by the compiler.
The PIC18 compiler (read, POS) does not optimize out the divide-by-8 in the bitfieldspecial.c routine.
Replacing
/8
with>>3
results in a performance boost for the PIC compiler of 60%.@billvaglienti can you see any issues with this in general? Slightly reduces code readability but enforces good behavior by the compiler.