| ??? 12/06/06 11:01 Read: times |
#129058 - Ah yes Responding to: ???'s previous message |
Christoph Franck said:
Shifts are always bitwise. The opposite of bitwise would be logical, and while you can have logical boolean operators, logical shifts don't make much sense. Ah yes - you're right. In 'C', the shift operators are actually called "Bitwise Shift Operators" I obviously need to re-read my 'C' textbook, too! Oops! I must've been getting confused with some processor instructions sets which provide distinct Logical and Arithmetic Shift instructions... http://en.wikipedia.org/wiki/Logical_shift http://en.wikipedia.org/wiki/Arithmetic_shift All of which just makes it the more obvious that the OP hasn't even looked in the textbook... |
| Topic | Author | Date |
| shifting array elements using bitwise opeartor inC | 01/01/70 00:00 | |
| Why? | 01/01/70 00:00 | |
| Elaborate please. | 01/01/70 00:00 | |
| opeartor inC | 01/01/70 00:00 | |
| Possibly not | 01/01/70 00:00 | |
| Possibly not | 01/01/70 00:00 | |
| No, it doesn't | 01/01/70 00:00 | |
| *nitpick* | 01/01/70 00:00 | |
| Ah yes | 01/01/70 00:00 | |
| may be not! | 01/01/70 00:00 | |
| We will never know ... | 01/01/70 00:00 | |
| my actual problem | 01/01/70 00:00 | |
| do not shift at all | 01/01/70 00:00 | |
| Circular buffer | 01/01/70 00:00 | |
| it's bytewise then, isn't it | 01/01/70 00:00 | |
| That makes _a lot_ more sense. | 01/01/70 00:00 | |
| just a small remark | 01/01/70 00:00 | |
My bad. | 01/01/70 00:00 |



