IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 1 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)

Same thing we do every night, Pinky... try to take over the WORLD!
36 ms