performance dissipation due to avoidable FPU-divides (Feature #2488)

Optimization of unneeded slow FPU operations (SQRT, FDIV).
a/d; b/d; ==> a*(1/d); b*(1/d);
dbl/2 ==> dbl*0.5;
sqrt(a) < fabs(b) ==> a < b*b,
sqrt(a) < sqrt(b) ==> a < b,
x==sqrt(x) * sqrt(x),
log(1/sqrt(x)) ==> -log(x)*0.5,
1.0f/(1 << N) ==> (1.0f/(1 << 30)) * (1 << (30-N))

retry: only relevant changes