/bionic/tests/ |
D | wctype_test.cpp | 27 UtfLocale() : l(newlocale(LC_ALL, "C.UTF-8", nullptr)) {} in UtfLocale() 28 ~UtfLocale() { freelocale(l); } in ~UtfLocale() 29 locale_t l; member in UtfLocale 36 UtfLocale l; in TestIsWideFn() local 43 EXPECT_TRUE(fn_l(*p, l.l)) << *p; in TestIsWideFn() 51 EXPECT_FALSE(fn_l(*p, l.l)) << *p; in TestIsWideFn() 119 UtfLocale l; in TEST() local 121 EXPECT_EQ(wint_t('!'), towlower_l(L'!', l.l)); in TEST() 122 EXPECT_EQ(wint_t('a'), towlower_l(L'a', l.l)); in TEST() 123 EXPECT_EQ(wint_t('a'), towlower_l(L'A', l.l)); in TEST() [all …]
|
D | strings_test.cpp | 90 locale_t l = newlocale(LC_ALL, "C", nullptr); in TEST() local 91 ASSERT_EQ(0, strcasecmp_l("hello", "HELLO", l)); in TEST() 92 ASSERT_LT(strcasecmp_l("hello1", "hello2", l), 0); in TEST() 93 ASSERT_GT(strcasecmp_l("hello2", "hello1", l), 0); in TEST() 94 freelocale(l); in TEST() 105 locale_t l = newlocale(LC_ALL, "C", nullptr); in TEST() local 106 ASSERT_EQ(0, strncasecmp_l("hello", "HELLO", 3, l)); in TEST() 107 ASSERT_EQ(0, strncasecmp_l("abcXX", "ABCYY", 3, l)); in TEST() 108 ASSERT_LT(strncasecmp_l("hello1", "hello2", 6, l), 0); in TEST() 109 ASSERT_GT(strncasecmp_l("hello2", "hello1", 6, l), 0); in TEST() [all …]
|
D | locale_test.cpp | 94 locale_t l = newlocale(LC_ALL, "C", nullptr); in TEST() local 95 ASSERT_TRUE(l != nullptr); in TEST() 96 freelocale(l); in TEST()
|
D | stdarg_test.cpp | 34 va_list l __attribute__((__unused__)); in TEST() local
|
D | pthread_test.cpp | 867 pthread_rwlock_t l; in TEST() local 868 ASSERT_EQ(0, pthread_rwlock_init(&l, nullptr)); in TEST() 871 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 872 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 875 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 876 ASSERT_EQ(0, pthread_rwlock_rdlock(&l)); in TEST() 877 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 878 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() 881 ASSERT_EQ(0, pthread_rwlock_wrlock(&l)); in TEST() 882 ASSERT_EQ(0, pthread_rwlock_unlock(&l)); in TEST() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | memmem.c | 70 const unsigned char *n, size_t l) in twoway_memmem() argument 77 for (i=0; i<l; i++) in twoway_memmem() 82 while (jp+k<l) { in twoway_memmem() 102 while (jp+k<l) { in twoway_memmem() 123 p = MAX(ms, l-ms-1) + 1; in twoway_memmem() 124 } else mem0 = l-p; in twoway_memmem() 130 if (z-h < l) return 0; in twoway_memmem() 133 if (BITOP(byteset, h[l-1], &)) { in twoway_memmem() 134 k = l-shift[h[l-1]]; in twoway_memmem() 142 h += l; in twoway_memmem() [all …]
|
D | strstr.c | 69 size_t l, ip, jp, k, p, ms, p0, mem, mem0; in twoway_strstr() local 74 for (l=0; n[l] && h[l]; l++) in twoway_strstr() 75 BITOP(byteset, n[l], |=), shift[n[l]] = l+1; in twoway_strstr() 76 if (n[l]) return 0; /* hit the end of h */ in twoway_strstr() 80 while (jp+k<l) { in twoway_strstr() 100 while (jp+k<l) { in twoway_strstr() 121 p = MAX(ms, l-ms-1) + 1; in twoway_strstr() 122 } else mem0 = l-p; in twoway_strstr() 131 if (z-h < l) { in twoway_strstr() 133 size_t grow = l | 63; in twoway_strstr() [all …]
|
/bionic/benchmarks/ |
D | stdlib_benchmark.cpp | 177 size_t i, j, k, l; in BM_stdlib_mbstowcs() local 178 l = 0; in BM_stdlib_mbstowcs() 181 buf[l++] = i, buf[l++] = j; in BM_stdlib_mbstowcs() 185 buf[l++] = i, buf[l++] = j, buf[l++] = k; in BM_stdlib_mbstowcs() 189 buf[l++] = i, buf[l++] = j, buf[l++] = 0x80, buf[l++] = k; in BM_stdlib_mbstowcs() 190 buf[l++] = 0; in BM_stdlib_mbstowcs() 216 size_t i, j, k, l; in BM_stdlib_mbrtowc() local 217 l = 0; in BM_stdlib_mbrtowc() 220 buf[l++] = i, buf[l++] = j; in BM_stdlib_mbrtowc() 224 buf[l++] = i, buf[l++] = j, buf[l++] = k; in BM_stdlib_mbrtowc() [all …]
|
/bionic/libc/arch-arm/generic/bionic/ |
D | strlen.c | 47 size_t l = 0; in strlen_generic() local 55 l++; in strlen_generic() 122 : [l]"=&r"(l), [v]"=&r"(v), [t]"=&r"(t), [s]"=&r"(u.b) in strlen_generic() 123 : "%[l]"(l), "%[s]"(u.b), [mask]"r"(0x80808080UL) in strlen_generic() 128 return l; in strlen_generic()
|
/bionic/libc/dns/nameser/ |
D | ns_name.c | 104 int l; in ns_name_ntop() local 123 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntop() 127 if (dn + l >= eom) { in ns_name_ntop() 147 for (; l > 0; l--) { in ns_name_ntop() 363 int l; in ns_name_ntol() local 380 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntol() 384 if (dn + l >= eom) { in ns_name_ntol() 388 for (; l > 0; l--) { in ns_name_ntol() 428 int n, len, checked, l; in ns_name_unpack2() local 446 if ((l = labellen(srcp - 1)) < 0) { in ns_name_unpack2() [all …]
|
/bionic/libc/private/ |
D | thread_private.h | 24 #define _MUTEX_LOCK(l) pthread_mutex_lock((pthread_mutex_t*) l) argument 25 #define _MUTEX_UNLOCK(l) pthread_mutex_unlock((pthread_mutex_t*) l) argument
|
/bionic/libc/system_properties/ |
D | contexts_split.cpp | 242 contexts_, [context](ContextListNode* l) { return !strcmp(l->context(), context); }); in InitializePropertiesFromFile() argument 309 ListForEach(contexts_, [&fsetxattr_failed, &open_failed](ContextListNode* l) { in Initialize() argument 310 if (!l->Open(true, fsetxattr_failed)) { in Initialize() 328 auto entry = ListFind(prefixes_, [name](PrefixNode* l) { in GetPrefixNodeForName() argument 329 return l->prefix[0] == '*' || !strncmp(l->prefix, name, l->prefix_len); in GetPrefixNodeForName() 352 ListForEach(contexts_, [propfn, cookie](ContextListNode* l) { in ForEach() argument 353 if (l->CheckAccessAndOpen()) { in ForEach() 354 l->pa()->foreach (propfn, cookie); in ForEach() 360 ListForEach(contexts_, [](ContextListNode* l) { l->ResetAccess(); }); in ResetAccess() argument
|
/bionic/libc/kernel/uapi/linux/ |
D | romfs_fs.h | 28 #define __mkw(h,l) (((h) & 0x00ff) << 8 | ((l) & 0x00ff)) argument 29 #define __mkl(h,l) (((h) & 0xffff) << 16 | ((l) & 0xffff)) argument
|
D | atm.h | 43 #define __SO_ENCODE(l,n,t) ((((l) & 0x1FF) << 22) | ((n) << 16) | sizeof(t)) argument
|
/bionic/libc/bionic/ |
D | locale.cpp | 73 locale_t l = uselocale(nullptr); in __ctype_get_mb_cur_max() local 74 if (l == LC_GLOBAL_LOCALE) { in __ctype_get_mb_cur_max() 77 return l->mb_cur_max; in __ctype_get_mb_cur_max() 135 locale_t duplocale(locale_t l) { in duplocale() argument 136 return new __locale_t(l); in duplocale() 139 void freelocale(locale_t l) { in freelocale() argument 140 delete l; in freelocale()
|
D | realpath.cpp | 66 ssize_t l = readlink(fd_path.c_str(), dst, sizeof(dst) - 1); in realpath() local 67 if (l == -1) return nullptr; in realpath() 68 dst[l] = '\0'; in realpath()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | open_memstream.c | 39 memstream_write(void *v, const char *b, int l) in memstream_write() argument 45 end = (st->pos + l); in memstream_write() 61 for (i = 0; i < l; i++) in memstream_write() 63 st->pos += l; in memstream_write()
|
D | open_wmemstream.c | 41 wmemstream_write(void *v, const char *b, int l) in wmemstream_write() argument 47 end = (st->pos + l); in wmemstream_write() 64 len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs); in wmemstream_write()
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | inet_ntop.c | 75 int l; in inet_ntop4() local 77 l = snprintf(tmp, sizeof(tmp), "%u.%u.%u.%u", in inet_ntop4() 79 if (l <= 0 || l >= size) { in inet_ntop4()
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | s_logl.c | 432 #define RETURN2(rp, h, l) do { \ argument 434 (rp)->lo = (l); \ 446 #define RETURN2(rp, h, l) RETURNI((h) + (l)) argument
|
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/ |
D | sha1.c | 56 # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ 57 |(rol(block->l[i],8)&0x00FF00FF)) 59 # define blk0(i) block->l[i] 61 #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ 62 ^block->l[(i+2)&15]^block->l[i&15],1)) 85 uint32_t l[16]; member
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_hypotl.c | 24 #define GET_LDBL_MAN(h, l, v) do { \ argument 29 l = uv.bits.manl; \
|
/bionic/libc/arch-arm64/generic/bionic/ |
D | memcpy_base.S | 86 #define L(l) .L ## l argument
|
D | memset.S | 86 #define L(l) .L ## l argument
|
/bionic/apex/ |
D | com.android.runtime.pem | 28 b3mIB3EFrsbnqXypayM/QUfQ/d48Xfa/l+74i1Qpd1MIeHYNndLDxtRes9Oc7Rnv
|