Branch: Tag:

2014-02-25

2014-02-25 14:32:09 by Per Hedbor <ph@opera.com>

Moved the UNLIKELY/LIKELY macros to global.h, and use a real configure test

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 ) + #else + # define UNLIKELY(X) X + # define LIKELY(X) X + #endif +    #ifndef HAVE_WORKING_REALLOC_NULL   #define realloc(PTR, SZ) pike_realloc(PTR,SZ)   #endif