[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210107082604.5bf57184@hermes.local>
Date: Thu, 7 Jan 2021 08:26:04 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Roi Dayan <roid@...dia.com>
Cc: netdev@...r.kernel.org, Petr Machata <petrm@...dia.com>,
David Ahern <dsahern@...il.com>
Subject: Re: [PATCH iproute2 v2 1/1] build: Fix link errors on some systems
On Thu, 7 Jan 2021 09:13:34 +0200
Roi Dayan <roid@...dia.com> wrote:
> +#define _IS_JSON_CONTEXT(type) ((type & PRINT_JSON || type & PRINT_ANY) && is_json_context())
> +#define _IS_FP_CONTEXT(type) (!is_json_context() && (type & PRINT_FP || type & PRINT_ANY))
You could fold the comparisons? and why are the two options doing comparison in different order?
#define _IS_JSON_CONTEXT(type) (is_json_context() && (type & (PRINT_JSON | PRINT_ANY))
#define _IS_FP_CONTEXT(type) (!is_json_context() && (type & (PRINT_FP || PRINT_ANY))
Powered by blists - more mailing lists