Home
last modified time | relevance | path

Searched refs:g (Results 1 – 20 of 20) sorted by relevance

/bionic/tests/
Dglob_test.cpp61 static void InstallFake(glob_t* g) { in InstallFake() argument
62 g->gl_closedir = fake_closedir; in InstallFake()
63 g->gl_readdir = fake_readdir; in InstallFake()
64 g->gl_opendir = fake_opendir; in InstallFake()
65 g->gl_lstat = fake_lstat; in InstallFake()
66 g->gl_stat = fake_stat; in InstallFake()
70 glob_t g = {}; in TEST() local
71 ASSERT_EQ(GLOB_NOMATCH, glob("/will/match/nothing", 0, nullptr, &g)); in TEST()
72 ASSERT_EQ(0U, g.gl_pathc); in TEST()
73 ASSERT_MATCH_COUNT(0U, g); in TEST()
[all …]
Dspawn_test.cpp75 pid_t g; in TEST() local
76 ASSERT_EQ(0, posix_spawnattr_getpgroup(&sa, &g)); in TEST()
77 ASSERT_EQ(123, g); in TEST()
DAndroid.bp34 "-g",
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregfree.c106 struct re_guts *g; in __weak_alias() local
114 g = preg->re_g; in __weak_alias()
115 if (g == NULL || g->magic != MAGIC2) /* oops again */ in __weak_alias()
118 g->magic = 0; /* mark it invalid */ in __weak_alias()
120 if (g->strip != NULL) in __weak_alias()
121 free(g->strip); in __weak_alias()
122 if (g->sets != NULL) in __weak_alias()
123 free(g->sets); in __weak_alias()
124 if (g->setbits != NULL) in __weak_alias()
125 free(g->setbits); in __weak_alias()
[all …]
Dregcomp.c116 struct re_guts *g; member
159 static int isinsets(struct re_guts *g, int c);
160 static int samesets(struct re_guts *g, int c1, int c2);
161 static void categorize(struct parse *p, struct re_guts *g);
167 static void stripsnug(struct parse *p, struct re_guts *g);
168 static void findmust(struct parse *p, struct re_guts *g);
169 static sopno pluscount(struct parse *p, struct re_guts *g);
216 ((p)->ncsalloc / CHAR_BIT * (p)->g->csetsize + \
240 struct re_guts *g; in regcomp() local
265 g = malloc(sizeof(struct re_guts) + (NC - 1) * sizeof(cat_t)); in regcomp()
[all …]
Dengine.c108 struct re_guts *g; member
129 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e…
134 static states step(struct re_guts *g, sopno start, sopno stop, states bef, int ch, states aft);
177 struct re_guts *g, in matcher() argument
188 const sopno gf = g->firststate+1; /* +1 for OEND */ in matcher()
189 const sopno gl = g->laststate; in matcher()
194 _DIAGASSERT(g != NULL); in matcher()
199 if (g->cflags&REG_NOSUB) in matcher()
213 if (g->must != NULL) { in matcher()
215 if (*dp == g->must[0] && (size_t)(stop - dp) >= g->mlen && in matcher()
[all …]
Dregexec.c158 #define CLEAR(v) memset(v, 0, (size_t)m->g->nstates) in __weak_alias()
162 #define ASSIGN(d, s) memcpy(d, s, (size_t)m->g->nstates) in __weak_alias()
163 #define EQ(a, b) (memcmp(a, b, (size_t)m->g->nstates) == 0) in __weak_alias()
166 if (((m)->space = malloc((size_t)((nv)*(m)->g->nstates))) == NULL) \
172 #define SETUP(v) ((v) = &m->space[(size_t)(m->vn++ * m->g->nstates)])
210 struct re_guts *g = preg->re_g; local
221 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
223 assert(!(g->iflags&BAD));
224 if (g->iflags&BAD) /* backstop for no-debug case */
230 if (g->nstates <= (sopno)(CHAR_BIT*sizeof(states1)) && !(eflags&REG_LARGE))
[all …]
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
Db_log.c368 double F, f, g, q, u, u2, v, zero = 0.0, one = 1.0;
384 g = ldexp(x, -m);
386 j = logb(g), m += j;
387 g = ldexp(g, -j);
389 j = N*(g-1) + .5;
391 f = g - F;
394 g = 1/(2*F+f);
395 u = 2*f*g;
411 u2 = (2.0*(f - F*u1) - u1*f) * g;
437 double F, f, g, q, u, v, u2; local
[all …]
/bionic/libc/stdio/
Dstdio.cpp141 glue* g = reinterpret_cast<glue*>(data); in moreglue() local
142 FILE* p = reinterpret_cast<FILE*>(ALIGN(data + sizeof(*g))); in moreglue()
143 __sfileext* pext = reinterpret_cast<__sfileext*>(ALIGN(data + sizeof(*g)) + n * sizeof(FILE)); in moreglue()
144 g->next = nullptr; in moreglue()
145 g->niobs = n; in moreglue()
146 g->iobs = p; in moreglue()
153 return g; in moreglue()
169 struct glue *g; in __sfp() local
172 for (g = &__sglue; g != nullptr; g = g->next) { in __sfp()
173 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) in __sfp()
[all …]
/bionic/libc/kernel/uapi/linux/
Dmap_to_7segment.h35 …_SEG7(l,a,b,c,d,e,f,g) (a << BIT_SEG7_A | b << BIT_SEG7_B | c << BIT_SEG7_C | d << BIT_SEG7_D | e … argument
/bionic/benchmarks/
DREADME.md58 space-separated list of arguments via the `--bionic_extra` command line flag, e.g.
86 (e.g. Toybox's `true` and `sh -c true`). Run it on a device like so:
111 standard deviation) for the runs. To do so, pass the `--benchmark_repetitions` option, e.g.:
145 `taskset` utility. e.g. A Pixel 3 device has 4 Kryo 385 Silver cores followed by 4 Gold cores:
/bionic/linker/
Dlinker_soinfo.cpp925 uint32_t h = 0, g; in calculate_elf_hash() local
929 g = h & 0xf0000000; in calculate_elf_hash()
930 h ^= g; in calculate_elf_hash()
931 h ^= g >> 24; in calculate_elf_hash()
DAndroid.bp432 "-g",
/bionic/libc/kernel/uapi/asm-x86/asm/
Dkvm.h129 __u8 present, dpl, db, s, l, g, avl; member
/bionic/libc/kernel/
DREADME.md13 reason (e.g. optimized CPU-specific byte-swapping routines).
/bionic/docs/
Delf-tls.md15 Thread-local variables are declared in C and C++ with a specifier, e.g.:
284 ([example](https://godbolt.org/g/gywcxk)).
379 thread pointer (e.g. `ps_get_thread_area`).
484 to these executables that only newer platforms recognize? (e.g. maybe an entry in .dynamic, a
599  ** the system (e.g. applications).
618 * The Go runtime allocates a thread-local "g" variable on Android by creating a pthread key and
807 The Go runtime allocates its thread-local "g" variable by searching for a hard-coded magic constant
814 key, but apps segfault. Perhaps the Go runtime expects its "g" variable to be zero-initialized ([one
Dfdsan.md38 …otnotes), [2](#footnotes)] or security vulnerabilities are also possible (e.g. suppose thread two …
Dstatus.md80 * Support in strptime for `%F`, `%G`, `%g`, `%P`, `%u`, `%V`, and `%v`.
/bionic/
Dandroid-changes-for-ndk-developers.md10 (e.g. arm-linux-androideabi-readelf or i686-linux-android-readelf)
/bionic/libc/
DAndroid.bp1523 // excludes functions selected using ifunc's (e.g. for string.h). Link in either