log2f snippet