Commit f51f1b7b authored by Feng Xiao's avatar Feng Xiao

Merge pull request #467 from AustinSchuh/GOOGLE_PREDICT_FALSE

Fixed bug in GOOGLE_PREDICT_FALSE.
parents dffd542b f4c8627e
......@@ -258,7 +258,7 @@ static const uint64 kuint64max = GOOGLE_ULONGLONG(0xFFFFFFFFFFFFFFFF);
#ifndef GOOGLE_PREDICT_FALSE
#ifdef __GNUC__
// Provided at least since GCC 3.0.
#define GOOGLE_PREDICT_FALSE(x) (__builtin_expect(!!(x), 1))
#define GOOGLE_PREDICT_FALSE(x) (__builtin_expect(x, 0))
#else
#define GOOGLE_PREDICT_FALSE
#endif
......
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