|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
|||||
|
|||||
|
Re: Manipulating bits
One word of warning about the PIC, though it probably doesn't apply in your case if you're just using shifts for bit manipulation. Right shifts are unsigned only. So if you have a signed int that you want to divide by 4, x >> 2 only works if the value is positive. A negative value will have 0 shifted into the high order bits and will end up looking like a positive number.
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Sorting drill bits | Andy Baker | Extra Discussion | 12 | 16-02-2005 21:46 |
| Manipulating tetras from the ground. | Petey | Rules/Strategy | 4 | 08-01-2005 23:19 |
| Hanging vs. Manipulating 2x balls | me9342 | Rules/Strategy | 41 | 13-01-2004 09:24 |
| Extracting Individual bits in C | Noah | Programming | 7 | 08-01-2004 15:53 |
| Sweet Repeat Bits | skrussel | Off-Season Events | 0 | 09-10-2003 21:13 |