Nowaways you just write 'divout = divin/8192' and assume the compiler is going to do the right thing (and very possibly do something deeper than "divin>>12" at the assembler level).
Makes me wonder who pays attention to this sort of thing these days :)
I do! When optimizing code that must run obscenely fast, I look at the assembly the compiler spits out to make sure that it can't be improved on, speed-wise.
Makes me wonder who pays attention to this sort of thing these days :)