Not all compilers are smart enough to evaluate pow() function and cast the result to integer at compile time, which leads to unresolved dependencies on libm at link-time. Better use standard UINTxx_C() macros for explicitly define long integer constants, and bit-shifting operations as long as powers of 2 are considered.
Not all compilers are smart enough to evaluate
pow()
function and cast the result to integer at compile time, which leads to unresolved dependencies on libm at link-time. Better use standardUINTxx_C()
macros for explicitly define long integer constants, and bit-shifting operations as long as powers of 2 are considered.