mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 21:10:12 +01:00
intel/decoder: Reuse the MAX2 macro instead of defining another one.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
91735e2d4a
commit
19ffa4bfb2
1 changed files with 1 additions and 3 deletions
|
|
@ -39,8 +39,6 @@
|
|||
|
||||
#define XML_BUFFER_SIZE 4096
|
||||
|
||||
#define MAX(a, b) ((a) < (b) ? (b) : (a))
|
||||
|
||||
#define MAKE_GEN(major, minor) ( ((major) << 8) | (minor) )
|
||||
|
||||
struct gen_spec {
|
||||
|
|
@ -381,7 +379,7 @@ create_and_append_field(struct parser_context *ctx,
|
|||
const char **atts)
|
||||
{
|
||||
if (ctx->group->nfields == ctx->group->fields_size) {
|
||||
ctx->group->fields_size = MAX(ctx->group->fields_size * 2, 2);
|
||||
ctx->group->fields_size = MAX2(ctx->group->fields_size * 2, 2);
|
||||
ctx->group->fields =
|
||||
(struct gen_field **) realloc(ctx->group->fields,
|
||||
sizeof(ctx->group->fields[0]) *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue