import 'dart:math'; double log2(double x) => log(x) / log(2);