• shift operator
    When compiling with Realview : unsigned long x; x = 1<<31; I get the message: Main.c(121): warning: #61-D: integer operation result is out of range Main.c(121): warning: #68-D: integer...
  • Cortex M3 - Right Shift Bug
    Hi, I'm using uVision 3.33, supplied as part of the Luminary Micro design contest. I've noticed the following problem when trying to right-shift a 16-bit unsigned value. The code produced is...
  • Problem with Shift-Operator
    Hi, I have a Problem with the Shift-Operator >> within my C-Code. I'm using PK166 V4.2 The following code should set the Variable n to 0. void main() { unsigned char n; unsigned char p; /...
  • C51 Compiler: Inconsistent Behaviour of Bit Shift Operator (<<)
    Compiler Version: Keil C51 5.0 I experienced some unexpected behaviour with the Keil C51 compiler. I have recreated the issue in the below code snippets. Case 1: Result of bit shift operator...
  • NEON-How to shift the whole D or Q to left or right?
    Note: This was originally posted on 12th July 2012 at http://forums.arm.com Hello    Base on NEON instuction set, I can find the VSHL or VSHR to perform shift operation. But it is just for every element...