mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
i965: Fix undefined signed overflow in INTEL_MASK for bitfields of 31 bits.
Most likely we had only ever used this macro on bitfields of less than 31 bits -- That's going to change shortly. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
f3cb2c34f2
commit
4e990b67ce
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
* Keith Whitwell <keithw@vmware.com>
|
||||
*/
|
||||
|
||||
#define INTEL_MASK(high, low) (((1<<((high)-(low)+1))-1)<<(low))
|
||||
#define INTEL_MASK(high, low) (((1u<<((high)-(low)+1))-1)<<(low))
|
||||
/* Using the GNU statement expression extension */
|
||||
#define SET_FIELD(value, field) \
|
||||
({ \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue