Thread: Improving skill with bitwise

  1. #1
    Old Fashioned
    Join Date
    Nov 2016
    Posts
    137

    Improving skill with bitwise

    Gaining some experience with bitwise operations such as AND, OR, XOR, Shift Left, Shift Right, Rotation, etc... I'm pretty familiar with what they are doing when it comes to actually visually performing the operations. However, it is also becoming very apparent to me that there is a lot of mathematical significance as to what is really going on with the numbers. An example would be how shifting left and right can perform multiplication and division in a faster manner than actual multiplication and division, and how XOR can be used for addition and so on...

    So my question is, is there any one-stop-shop or primer on the details of these operations in terms of what you can do with them mathematically? I've sort of bits-and-pieced (not pun intended, oh gosh) information together but I'd be surprised if there wasn't a good write up or resource detailing this. It doesn't need to be super crazy mathematician-like, but just even all the basics. I've been incorporating assembly into my code lately which has helped a bit, and shown me how these ops can be used to do amazing things, but again, I still wouldn't consider myself fluent by any means. Thanks.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    This should keep you busy for a while
    bit twiddling - Google Search
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Old Fashioned
    Join Date
    Nov 2016
    Posts
    137
    Wow, thanks for the magic words. Twiddling!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. is my programming flawless? i need to reach that level of skill
    By Mukul Kumar in forum C++ Programming
    Replies: 64
    Last Post: 05-16-2013, 09:55 AM
  2. game development & programming skill required
    By newprog82 in forum Game Programming
    Replies: 2
    Last Post: 11-02-2010, 11:29 AM
  3. Help on Improving
    By toonlover in forum C++ Programming
    Replies: 3
    Last Post: 05-23-2005, 11:32 PM
  4. Ways to better programming skill
    By Unferth in forum C++ Programming
    Replies: 9
    Last Post: 09-23-2003, 05:35 PM

Tags for this Thread