asdlijf
This commit is contained in:
parent
a34687ba25
commit
f1adffd175
1 changed files with 3 additions and 3 deletions
6
silly.js
6
silly.js
|
@ -8,13 +8,13 @@ let inputRange = 4;
|
|||
let shift = 4;
|
||||
let base = 2 ** (bits - shift);
|
||||
|
||||
let reduction = 0;
|
||||
let reduction = 4;
|
||||
let roundOffset = (2 ** (reduction - 1)) + 1;
|
||||
let entries = 2 ** (bits - reduction);
|
||||
let bytes = Math.ceil(bits / 8) * entries;
|
||||
|
||||
// try to keep all but the last few bits semi-accurate
|
||||
let epsilonBits = 1;
|
||||
let epsilonBits = 1 ;
|
||||
let epsilon = 2 ** epsilonBits;
|
||||
|
||||
function toFixed(float) {
|
||||
|
@ -145,7 +145,7 @@ deltaCount = 0;
|
|||
console.log('done');
|
||||
|
||||
|
||||
console.log(`size of enloggen table: ${entries * 2} entries, ${bytes} bytes`);
|
||||
console.log(`size of enloggen table: ${entries} entries, ${bytes} bytes`);
|
||||
console.log(`size of empower table: ${entries * 2} entries, ${bytes * 2} bytes`);
|
||||
|
||||
let m = 0;
|
||||
|
|
Loading…
Reference in a new issue