Java tutorial
//package com.java2s; // I ported this from the mame project, this is their license public class Main { static double LOGB2(double v) { return Math.log(v) / Math.log(2); } }