srt: log2() fix, bit flip correction