Commit 253581a2 authored by dbates@webkit.org's avatar dbates@webkit.org

2011-01-03 Daniel Bates <dbates@rim.com>

        Reviewed by Darin Adler.

        Use __builtin_expect when compiling using RVCT in GNU mode
        https://bugs.webkit.org/show_bug.cgi?id=51866

        Derived from a patch by Dave Tapuska.

        * wtf/AlwaysInline.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e23555db
2011-01-03 Daniel Bates <dbates@rim.com>
Reviewed by Darin Adler.
Use __builtin_expect when compiling using RVCT in GNU mode
https://bugs.webkit.org/show_bug.cgi?id=51866
Derived from a patch by Dave Tapuska.
* wtf/AlwaysInline.h:
2011-01-03 Darin Adler <darin@apple.com>
Reviewed by Brady Eidson.
......
......@@ -41,7 +41,7 @@
#endif
#ifndef UNLIKELY
#if COMPILER(GCC)
#if defined(__GNUC__)
#define UNLIKELY(x) __builtin_expect((x), 0)
#else
#define UNLIKELY(x) (x)
......@@ -49,7 +49,7 @@
#endif
#ifndef LIKELY
#if COMPILER(GCC)
#if defined(__GNUC__)
#define LIKELY(x) __builtin_expect((x), 1)
#else
#define LIKELY(x) (x)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment