Home
last modified time | relevance | path

Searched refs:__predict_true (Results 1 – 2 of 2) sorted by relevance

/system/core/libutils/include/utils/
DFastStrcmp.h23 #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/
Dlibllkd.cpp151 : fd(__predict_true(directory != nullptr) in dir()
351 if (__predict_true(len < (sizeof(comm) - 1))) { in getComm()
353 if ((comm[len] != ']') && __predict_true(len < (sizeof(comm) - 2))) { in getComm()
755 return (pwd != nullptr) && __predict_true(pwd->pw_name != nullptr) && in llkSkipUid()
756 __predict_true(pwd->pw_name[0] != '\0') && llkSkipName(pwd->pw_name, llkIgnorelistUid); in llkSkipUid()