[dpdk-dev] [PATCH] eal/common: better likely() and unlikely()

Thomas Monjalon thomas at monjalon.net
Sat Jan 20 17:28:21 CET 2018


19/11/2017 23:16, Aleksey Baulin:
> A warning is issued when using an argument to likely() or unlikely()
> builtins which is evaluated to a pointer value, as __builtin_expect()
> expects a 'long int' type for its first argument. With this fix
> a pointer value is converted to an integer with the value of 0 or 1.
> 
> Signed-off-by: Aleksey Baulin <Aleksey.Baulin at gmail.com>

After philosophical debates,
Applied, thanks :)



More information about the dev mailing list