Searched refs:__predict_true (Results 1 – 3 of 3) sorted by relevance
/system/core/libutils/include/utils/ |
D | FastStrcmp.h | 23 #ifndef __predict_true 24 #define __predict_true(exp) __builtin_expect((exp) != 0, 1) macro 45 return __predict_true(n > 0) && in fastcmp() 46 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp() 52 return __predict_true(n > 0) && in fasticmp() 53 ((tolower(*l) != tolower(*r)) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fasticmp() 61 return __predict_true(n > 0) && in fastcmp() 62 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp() 67 return (*l != *r) || (__predict_true(*l) && cmp(l + 1, r + 1)); in fastcmp() 72 return (tolower(*l) != tolower(*r)) || (__predict_true(*l) && cmp(l + 1, r + 1)); in fasticmp()
|
/system/core/llkd/ |
D | libllkd.cpp | 150 : fd(__predict_true(directory != nullptr) in dir() 346 if (__predict_true(len < (sizeof(comm) - 1))) { in getComm() 348 if ((comm[len] != ']') && __predict_true(len < (sizeof(comm) - 2))) { in getComm() 747 return (pwd != nullptr) && __predict_true(pwd->pw_name != nullptr) && in llkSkipUid() 748 __predict_true(pwd->pw_name[0] != '\0') && llkSkipName(pwd->pw_name, llkBlacklistUid); in llkSkipUid()
|
/system/core/logd/ |
D | LogBuffer.cpp | 393 if (__predict_true(it != mLogElements.begin())) --it; in log() 395 __predict_true((*it)->getRealTime() <= elem->getRealTime()) || in log()
|