IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New my table driven routine
const unsigned char double_nybble[] = { 0x00, 0x03, 0x0C, 0x0F,

0x30, 0x33, 0x3C, 0x3F,
0xC0, 0xC3, 0xCC, 0xCF,
0xF0, 0xF3, 0xFC, 0xFF};

int DoubleBits(int bits)
{
return (double_nybble[(bits & 0xf0) >> 4] << 8) + double_nybble[bits & 0x0f];
}
New Nice, looks like it should be quick
Regards,
-scott
Welcome to Rivendell, Mr. Anderson.
New Re: my table driven routine
Haven't seen the word "nybble" since my student days.
     is there a better way to double/quad up a bit pattern? - (SpiceWare) - (8)
         Try these - (malraux) - (4)
             Good stuff. Any (known) relation? -NT - (Another Scott) - (1)
                 Hah, I didn't notice that the first time -NT - (malraux)
             thanks - (SpiceWare)
             I like the page title - (drook)
         my table driven routine - (SpiceWare) - (2)
             Nice, looks like it should be quick -NT - (malraux)
             Re: my table driven routine - (pwhysall)

I'm picturing tablizer on a laptop dragging around a 486 whitebox running Linux attached to a really long extension cord.
71 ms