bitwise.는 어디에 쓰이나요???

zernar의 이미지

bit단위의 조작이 어디에 쓰이는지 실무적인 측면에서 알고 싶습니다.
여기저기 자료를 찾아보았는데, 잘 모르겠어요...
ㅠㅠ 정리가 안되서 그런지.. 부탁드려요.

freestyle의 이미지

마이크로프로세서 제어에서
특정 LED의 ON/OFF가 메모리 특정 위치의
특정 비트에 0이 들어오냐 1이 들어오냐로 결정나게 됩니다.

기타 등등.
---------------------------
Go to the U-City

----------------------------------------------------------------------------------------
Don't Feed the Trolls!
----------------------------------------------------------------------------------------

cppig1995의 이미지

특정 비트의 set, reset, complement.
또, http://graphics.stanford.edu/~seander/bithacks.html 페이지를 읽어 보세요.



한말글 프로그래밍 언어 "열정" http://me-lang.wo.tc

Real programmers /* don't */ comment their code.
If it was hard to write, it should be /* hard to */ read.