This commit is contained in:
Brooke Vibber 2023-01-07 20:11:52 -08:00
parent a34687ba25
commit f1adffd175

View file

@ -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;