[Piglit] [PATCH 0/5] Consolidate CLAMP, MIN2, MAX2, and ARRAY_SIZE macros.

Paul Berry stereotype441 at gmail.com
Wed Jan 25 17:56:43 PST 2012


Many .c files in Piglit define some subset of the macros CLAMP, MIN2,
MAX2, and ELEMENTS/ARRAY_SIZE, occasionally with variations in name
and/or calling convention.  This patch standardizes all of the macros
and consolidates the definitions into one place, piglit-util.h.

Exception: I didn't touch the macros in Glean, since Glean is
independent of piglit-util.

No change in Piglit results on Sandy Bridge.

[PATCH 1/5] Standardize argument order for CLAMP.
[PATCH 2/5] Rename MAX to MAX2 in texunits.c.
[PATCH 3/5] Make readtex.c include piglit-util.h.
[PATCH 4/5] Move CLAMP, MIN2, and MAX2 macros to piglit-util.h.
[PATCH 5/5] Change ELEMENTS macros to ARRAY_SIZE.


More information about the Piglit mailing list