Home
last modified time | relevance | path

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

/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/libc/upstream-openbsd/lib/libc/stdio/
Dfwalk.c44 struct glue *g; in _fwalk() local
47 for (g = &__sglue; g != NULL; g = g->next) in _fwalk()
48 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) { in _fwalk()
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
Db_log.c367 double F, f, g, q, u, u2, v, zero = 0.0, one = 1.0;
383 g = ldexp(x, -m);
385 j = logb(g), m += j;
386 g = ldexp(g, -j);
388 j = N*(g-1) + .5;
390 f = g - F;
393 g = 1/(2*F+f);
394 u = 2*f*g;
410 u2 = (2.0*(f - F*u1) - u1*f) * g;
436 double F, f, g, q, u, v, u2; local
[all …]
/bionic/linker/
Dlinker_mips.cpp146 size_t g = 0; in mips_relocate_got() local
147 got[g++] = reinterpret_cast<ElfW(Addr)*>(0xdeadbeef); in mips_relocate_got()
148 if (reinterpret_cast<intptr_t>(got[g]) < 0) { in mips_relocate_got()
149 got[g++] = reinterpret_cast<ElfW(Addr)*>(0xdeadfeed); in mips_relocate_got()
152 for (; g < mips_local_gotno_; g++) { in mips_relocate_got()
153 got[g] = reinterpret_cast<ElfW(Addr)*>(reinterpret_cast<uintptr_t>(got[g]) + load_bias); in mips_relocate_got()
Dlinker.cpp905 uint32_t h = 0, g; in calculate_elf_hash() local
909 g = h & 0xf0000000; in calculate_elf_hash()
910 h ^= g; in calculate_elf_hash()
911 h ^= g >> 24; in calculate_elf_hash()
/bionic/libc/stdio/
Dstdio.cpp110 glue* g = reinterpret_cast<glue*>(data); in moreglue() local
111 FILE* p = reinterpret_cast<FILE*>(ALIGN(data + sizeof(*g))); in moreglue()
112 __sfileext* pext = reinterpret_cast<__sfileext*>(ALIGN(data + sizeof(*g)) + n * sizeof(FILE)); in moreglue()
113 g->next = NULL; in moreglue()
114 g->niobs = n; in moreglue()
115 g->iobs = p; in moreglue()
122 return g; in moreglue()
131 struct glue *g; in __sfp() local
134 for (g = &__sglue; g != NULL; g = g->next) { in __sfp()
135 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) in __sfp()
[all …]
/bionic/libc/kernel/uapi/linux/
Dmap_to_7segment.h39 …_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/libc/kernel/
DREADME.TXT11 reason (e.g. optimized CPU-specific byte-swapping routines).
/bionic/libc/kernel/uapi/asm-x86/asm/
Dkvm.h154 __u8 present, dpl, db, s, l, g, avl; member