As Weddington, Eric wrote:

> > -    return 30 + ((month + month / 8) & 1);

> You're dividing by 8. Did you try replacing the divide with a right
> shift? Would that get you better code size?

That's the old, dismissed version anyway.

I agree with Mike that the "knuckles" algorithm is easier to
understand.
-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to