ALL


  20 bit operations programmers should know

While talking about bit operation, programmers usually think about its efficiency. In embedded programming and system core optimization, appropriate use of bit operations is always a fascinating. When finding a job, it will help you a lot if you use bit operations when writing codes. Mastering simple bit arithmetic skills is necessary.1. Get maximum int valueint getMaxInt(){          return (1 << 31) - 1;//2147483647,   }  Another way:int getMaxInt(){     &nbs...

28,083 6       TIPS BIT OPERATION