I tend to use math functions of constant expressions for convinience and coherence (i.e log(x)/log(2) instead of log(x)/0.3...). Since these functi
log(x)/log(2)
log(x)/0.3...
This happens at runtime since the code for the function only becomes available during the linking step (which happens after the compile step).
To optimize the step, use a global variable which you initialize before you use it.