Quote Originally Posted by cairnswm
instead of using integers in cairnswm's N lookup table, couldn't you use bytes and get both a performance and size win?
No because byte only goes to 256 and these numbers are larger - but maybe SmallInt could save space.
The "Twos" array only has a range og 1..11 which means a byte will suffice
Code:
Const 
  Twos : Array[1..11] of LongInt = (1,2,4,8,16,32,64,128,256,512,1024); 

var 
    N : Array[1..1024] of Byte;
just cut of 1024*3 bytes of ram