say you've had this code fragment:
static const float k = 100.0f;
(some complex expression) / k;
Is the compilers these days smart enough to multiply by the inverse of k, rather than actually divide by k? Or do you have to do:
static const float k = 100.0f;
static const float inv_k = 1 / k;
inv_k * (some complex expression);



