[igt-dev] [PATCH i-g-t] tools/aubdump: dump 48-bit addresses
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Tue Apr 3 21:25:12 UTC 2018
On 30/03/18 20:56, Scott D Phillips wrote:
> index 267061b0..78fda93c 100644
> --- a/tools/aubdump.c
> +++ b/tools/aubdump.c
> @@ -56,6 +56,12 @@
> _a < _b ? _a : _b; \
> })
>
> +#define max(a, b) ({ \
> + typeof(a) _a = (a); \
> + typeof(b) _b = (b); \
> + _a > _b ? _a : _b; \
> +})
> +
I forgot to suggest that you just include igt.h
According to meson.build we already pull in the igt dep into aubdump so
better reuse the macros from there.
Just a nit really...
More information about the igt-dev
mailing list