Optimized arithmetic and other operations for AVR