To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 22636
22635  |  22637
Subject: 
bitwise manipulations in C
Newsgroups: 
lugnet.robotics
Date: 
Fri, 6 Aug 2004 19:23:19 GMT
Original-From: 
scott davis <rcx2man@hotmail.^spamcake^com>
Viewed: 
1471 times
  
Hi,
Can anybody tell me about bitwise manipulations or point me to a site that
explains what it is, what its used for, and how to use it?

thanks,
Scott

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Message has 2 Replies:
  Re: bitwise manipulations in C
 
(...) There really isn't a lot to tell. All integers (short's, chars) in C are considered as a bunch of bits. You can use the '&', '|', '^', '~', '<<' and '>>' operators to AND, OR, XOR, INVERT, Up-shift and Down-shift all of the bits at once. (...) (...) (20 years ago, 6-Aug-04, to lugnet.robotics)
  Re: bitwise manipulations in C
 
(...) Hi Scott, Steve summed it up well. Here's a fairly simple example: (URL) processes data from a LEGO remote control, which arrives every few ms as a "bit mask", with each 1 bit representing a pressed key on the remote. If you look in (...) (20 years ago, 6-Aug-04, to lugnet.robotics)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
5 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR