[NumPy-Tickets] [NumPy] #1856: Shift operator cycles for int32 and int64

NumPy Trac numpy-tickets@scipy....
Thu Jun 2 21:52:34 CDT 2011


#1856: Shift operator cycles for int32 and int64
------------------------+---------------------------------------------------
 Reporter:  klasj       |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  1.6.0      
 Keywords:  shift       |  
------------------------+---------------------------------------------------

Comment(by charris):

 See [http://tinyurl.com/3vqv7qz this]. Apparently the Intel hardware masks
 the shift bits. On 32 bit machines 5 bits are used, max shift 31, and it
 seems on 64 bit architectures 6 bits are used.

 We should be able to fix this, but the c shift operators are not precisely
 defined anyway. They can be cyclic or not, arithmetic or logical, or at
 least that used to be the case. I don't think numpy has a spec for this.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1856#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list