Branch: Tag:

2015-09-27

2015-09-27 03:27:02 by Martin Nilsson <nilsson@fastmail.com>

New feature: working __builtin_expect. I get very unreliable numbers on if this makes any difference.

207:   #define DECLSPEC(X)   #endif /* HAVE_DECLSPEC */    - #ifdef HAS_BUILTIN_EXPECT - # define UNLIKELY(X) __builtin_expect( (X), 0 ) - # define LIKELY(X) __builtin_expect( (X), 1 ) + #ifdef HAS___BUILTIN_EXPECT + # define UNLIKELY(X) __builtin_expect( (long)(X), 0 ) + # define LIKELY(X) __builtin_expect( (long)(X), 1 )   #else   # define UNLIKELY(X) X   # define LIKELY(X) X