0 Members and 6 Guests are viewing this topic.
Quote from: aeTIos on November 05, 2011, 09:56:19 amare bit commands planned? if not I want to request. (since that will give a HUGE size optimization)Wait did you mean bit shifting or setting/resetting/accessing individual bits? Because shifting can be accomplished by simply multiplying or dividing by 2, and setting/resetting/accessing individual bits has already been implemented.
are bit commands planned? if not I want to request. (since that will give a HUGE size optimization)
But to set a bit (let's say the first one for example), don't we just need to or with 10000000 ?And the same to reset but with xor ?
Quote from: Hayleia on November 05, 2011, 03:29:50 pmBut to set a bit (let's say the first one for example), don't we just need to or with 10000000 ?And the same to reset but with xor ?You would use AND to reset bits, XOR is used to toggle a bit
Don't forget the 'e' operator. It accesses the Nth bit of a number. Its been around for a long time now...
Quote from: Quigibo on November 05, 2011, 07:35:09 pmDon't forget the 'e' operator. It accesses the Nth bit of a number. Its been around for a long time now...Syntax?