From: d...@mobilefusioninc.com
[...]
I'm still puzzled as to why the compiler didn't change:
// This takes 53uS at 4 MHz
Bin = ( A / Data_Divisor ) // Data_Divisor is a constant, 32.
into
// This takes 8.9uS at 4 MHz
Bin = ( A >> 5)
Just guessing, but it may be trying to preserve truncation toward zero
(required by C99) if the expression is signed.
Regards,
-=Dave
_________________________________________________________________
Windows Live⢠Groups: Create an online spot for your favorite groups to meet.
http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list