Re: [Mesa-dev] [PATCH 1/3] gallium: clarify shift behavior with shift count >= 32

2013-07-30 Thread Roland Scheidegger
Am 30.07.2013 18:13, schrieb srol...@vmware.com: > From: Roland Scheidegger > > Previously, nothing was said what happens with shift counts exceeding > bit width of the values to shift. In theory 3 behaviors are possible: > 1) undefined (classic c definition) > 2) just shift out all bits (so resu

[Mesa-dev] [PATCH 1/3] gallium: clarify shift behavior with shift count >= 32

2013-07-30 Thread sroland
From: Roland Scheidegger Previously, nothing was said what happens with shift counts exceeding bit width of the values to shift. In theory 3 behaviors are possible: 1) undefined (classic c definition) 2) just shift out all bits (so result is zero, or -1 potentially for ashr) 3) mask the shift cou