global def of log2