title: Is the right-shift operator in Objective C on OSX/iOS an arithmetic or logical right shift?
body: <p>Is the right-shift operator in Objective C on OSX/iOS an arithmetic or logical right shift?</p>
  
  <p>I can't find any references that specify whether the right-shift is arithmetic or logical, or if it varies depending on the data type (signed/unsigned) and/or architecture (x86/PPC/x64/ARM).</p>
  
  <p>"Programming in Objective-C 2.0" states that this is effectively undefined, but that conflicts with information I've seen elsewhere that compilers attempt to "do the right thing" based on signed-ness of types.</p>