numam-spdk/include
Daniel Verkamp 6854710d6d likely.h: fix spdk_likely condition
The __builtin_expect(), as written before, would have generated the
right branch taken/not taken condition, but the return value was the
opposite of the cond value.

We need to double-not the value to convert it to a 0/1 value while
preserving its original 0/non-zero sense.

Change-Id: I38101ff3ed8e89fc6516cfcdf7d642651545e4ff
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2016-12-15 13:01:08 -07:00
..
spdk likely.h: fix spdk_likely condition 2016-12-15 13:01:08 -07:00
spdk_internal log: print trace flag names in SPDK_TRACELOG() 2016-11-28 13:15:08 -07:00