Re: D'oh, forgot my title! (Bit twiddling and bit manipulation...)

2004-01-06 Thread jo_holvoet
Subject: Re: D'oh, forgot my title! (Bit twiddling and bit manipulation...) As a first cut, bit 'i' appears to map to a new value of power(2,i*2-1)*1.5 eg 8th bit set = 1000 binary = 128 decimal = 1100 under new scheme = 49152 decimal = power

Re: D'oh, forgot my title! (Bit twiddling and bit manipulation...)

2004-01-06 Thread Connor McDonald
As a first cut, bit 'i' appears to map to a new value of power(2,i*2-1)*1.5 eg 8th bit set = 1000 binary = 128 decimal = 1100 under new scheme = 49152 decimal = power(2,8*2-1)*1.5 so you could have something like: new_num := 0; x := 1; for i in 0 .. 7 loop if bitand(o

D'oh, forgot my title! (Bit twiddling and bit manipulation...)

2004-01-06 Thread Bobak, Mark
Sorry, first time I sent this, I typoed the mailing list address, when I cut-and-paste to resend, I forgot the title. -Original Message- From: Bobak, Mark Sent: Tue 1/6/2004 4:39 AM To: Multiple recipients of list ORACLE-L Cc: Subject: Hi, Well, since I can't sle