Re: Bitwise OR and AND without bitwise operators....
- From: "CelticDaddio" <spamtrap@xxxxxxxxxxxxxxx>
- Date: 28 Feb 2006 12:27:04 -0800
Is this correct? Bit k, of n would be
m = n/k, m-((m/2)*2)
So could I do this
int testValue = 41;
for(int nBit = 0; nBit < numberOfBits; nBit++) {
m = testValue/nBit;
int bitSet = m-((m/2)*2)
}
CD
.
- Follow-Ups:
- References:
- Bitwise OR and AND without bitwise operators....
- From: CelticDaddio
- Re: Bitwise OR and AND without bitwise operators....
- From: stush
- Bitwise OR and AND without bitwise operators....
- Prev by Date: Re: Linear transformations
- Next by Date: Re: Linear transformations
- Previous by thread: Re: Bitwise OR and AND without bitwise operators....
- Next by thread: Re: Bitwise OR and AND without bitwise operators....
- Index(es):