Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Bitwise Operators: Combining Efficiency and Ease of Use

Bitwise operators are used in Digital Signal Processing, compression and encryption algorithms, GUI, and other application domains as an efficient way of manipulating strings of bits. Learn how to use them and take the pain out of the setting, clearing, and testing bit strings.


advertisement
irect manipulation of bits that aren't stored as bit-fields is an arduous and error-prone task. Fortunately, C++ has a set of bitwise operators for this purpose. These operators are widely used in Digital Signal Processing, compression and encryption algorithms, GUI, and other application domains. The following sections introduce the bitwise operators and show how to use them.


How to manipulate strings of bits directly, in an efficient and readable manner?


Use the built-in bitwise operators for setting, clearing, and testing bit strings.





Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date