Make minor improvements

This commit is contained in:
Justine Tunney 2020-12-23 23:42:56 -08:00
parent 04caf6f9ad
commit 95b142e4e5
95 changed files with 3818 additions and 2760 deletions

View file

@ -800,8 +800,8 @@
* because of bugs in gcc-4.4
* (http://lists.debian.org/debian-gcc/2010/04/msg00000.html)
*/
#define DUK_LIKELY(x) likely(x)
#define DUK_UNLIKELY(x) unlikely(x)
#define DUK_LIKELY(x) __builtin_expect(!!(x), 1)
#define DUK_UNLIKELY(x) __builtin_expect(!!(x), 0)
#endif
/* XXX: equivalent of clang __builtin_unpredictable? */