diff options
Diffstat (limited to 'src/utility.js')
-rw-r--r-- | src/utility.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js index 40b16a97..e49c8509 100644 --- a/src/utility.js +++ b/src/utility.js @@ -302,3 +302,7 @@ function sleep(secs) { while (Date.now() - start < secs*1000) {}; } +function log2(x) { + return Math.log(x)/Math.LN2; +} + |