stmhal: #undef log2f if it's defined.