g 121 Zend/micro_bench.php $this->g(); g 22 ext/ereg/regex/debug.c register struct re_guts *g = r->re_g; g 28 ext/ereg/regex/debug.c fprintf(d, "%ld states, %d categories", (long)g->nstates, g 29 ext/ereg/regex/debug.c g->ncategories); g 30 ext/ereg/regex/debug.c fprintf(d, ", first %ld last %ld", (long)g->firststate, g 31 ext/ereg/regex/debug.c (long)g->laststate); g 32 ext/ereg/regex/debug.c if (g->iflags&USEBOL) g 34 ext/ereg/regex/debug.c if (g->iflags&USEEOL) g 36 ext/ereg/regex/debug.c if (g->iflags&BAD) g 38 ext/ereg/regex/debug.c if (g->nsub > 0) g 39 ext/ereg/regex/debug.c fprintf(d, ", nsub=%ld", (long)g->nsub); g 40 ext/ereg/regex/debug.c if (g->must != NULL) g 41 ext/ereg/regex/debug.c fprintf(d, ", must(%ld) `%*s'", (long)g->mlen, (int)g->mlen, g 42 ext/ereg/regex/debug.c g->must); g 43 ext/ereg/regex/debug.c if (g->backrefs) g 45 ext/ereg/regex/debug.c if (g->nplus > 0) g 46 ext/ereg/regex/debug.c fprintf(d, ", nplus %ld", (long)g->nplus); g 48 ext/ereg/regex/debug.c s_print(g, d); g 49 ext/ereg/regex/debug.c for (i = 0; i < g->ncategories; i++) { g 52 ext/ereg/regex/debug.c if (g->categories[c] == i) g 56 ext/ereg/regex/debug.c for (i = 1; i < g->ncategories; i++) g 59 ext/ereg/regex/debug.c if (g->categories[c] == i) g 64 ext/ereg/regex/debug.c for (i = 1; i < g->ncategories; i++) g 69 ext/ereg/regex/debug.c if (c <= CHAR_MAX && g->categories[c] == i) { g 116 ext/ereg/regex/debug.c if (OP(g->strip[0]) != OEND) g 118 ext/ereg/regex/debug.c for (s = &g->strip[1]; !done; s++) { g 148 ext/ereg/regex/debug.c cs = &g->sets[opnd]; g 150 ext/ereg/regex/debug.c for (i = 0; i < g->csetsize+1; i++) /* +1 flushes */ g 151 ext/ereg/regex/debug.c if (CHIN(cs, i) && i < g->csetsize) { g 33 ext/ereg/regex/engine.c struct re_guts *g; g 78 ext/ereg/regex/engine.c const register sopno gf = g->firststate+1; /* +1 for OEND */ g 79 ext/ereg/regex/engine.c const register sopno gl = g->laststate; g 84 ext/ereg/regex/engine.c if (g->cflags®_NOSUB) g 97 ext/ereg/regex/engine.c if (g->must != NULL) { g 99 ext/ereg/regex/engine.c if (*dp == g->must[0] && stop - dp >= g->mlen && g 100 ext/ereg/regex/engine.c memcmp(dp, g->must, (size_t)g->mlen) == 0) g 107 ext/ereg/regex/engine.c m->g = g; g 128 ext/ereg/regex/engine.c if (nmatch == 0 && !g->backrefs) g 141 ext/ereg/regex/engine.c if (nmatch == 1 && !g->backrefs) g 146 ext/ereg/regex/engine.c m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * g 152 ext/ereg/regex/engine.c for (i = 1; i <= m->g->nsub; i++) g 154 ext/ereg/regex/engine.c if (!g->backrefs && !(m->eflags®_BACKR)) { g 158 ext/ereg/regex/engine.c if (g->nplus > 0 && m->lastpos == NULL) g 159 ext/ereg/regex/engine.c m->lastpos = (unsigned char **)malloc((g->nplus+1) * g 161 ext/ereg/regex/engine.c if (g->nplus > 0 && m->lastpos == NULL) { g 173 ext/ereg/regex/engine.c assert(g->backrefs); /* must be back references doing it */ g 174 ext/ereg/regex/engine.c assert(g->nplus == 0 || m->lastpos != NULL); g 184 ext/ereg/regex/engine.c for (i = 1; i <= m->g->nsub; i++) { g 210 ext/ereg/regex/engine.c if (i <= m->g->nsub) g 258 ext/ereg/regex/engine.c switch (OP(m->g->strip[es])) { g 261 ext/ereg/regex/engine.c es += OPND(m->g->strip[es]); g 264 ext/ereg/regex/engine.c while (OP(m->g->strip[es]) != O_CH) g 265 ext/ereg/regex/engine.c es += OPND(m->g->strip[es]); g 271 ext/ereg/regex/engine.c switch (OP(m->g->strip[ss])) { g 367 ext/ereg/regex/engine.c esub = ss + OPND(m->g->strip[ss]) - 1; g 368 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR1); g 373 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR1); g 375 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR2); g 377 ext/ereg/regex/engine.c esub += OPND(m->g->strip[esub]); g 378 ext/ereg/regex/engine.c if (OP(m->g->strip[esub]) == OOR2) g 381 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == O_CH); g 395 ext/ereg/regex/engine.c i = OPND(m->g->strip[ss]); g 396 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); g 400 ext/ereg/regex/engine.c i = OPND(m->g->strip[ss]); g 401 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); g 447 ext/ereg/regex/engine.c switch (OP(s = m->g->strip[ss])) { g 458 ext/ereg/regex/engine.c cs = &m->g->sets[OPND(s)]; g 465 ext/ereg/regex/engine.c (m->g->cflags®_NEWLINE)) ) g 473 ext/ereg/regex/engine.c (m->g->cflags®_NEWLINE)) ) g 481 ext/ereg/regex/engine.c (m->g->cflags®_NEWLINE)) || g 492 ext/ereg/regex/engine.c (m->g->cflags®_NEWLINE)) || g 503 ext/ereg/regex/engine.c s = m->g->strip[ss]; g 507 ext/ereg/regex/engine.c } while (OP(s = m->g->strip[ss]) != O_CH); g 523 ext/ereg/regex/engine.c s = m->g->strip[ss]; g 527 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); g 538 ext/ereg/regex/engine.c while (m->g->strip[ss] != SOP(O_BACK, i)) g 550 ext/ereg/regex/engine.c assert(lev+1 <= m->g->nplus); g 568 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR1); g 574 ext/ereg/regex/engine.c if (OP(m->g->strip[esub]) == O_CH) g 577 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR2); g 579 ext/ereg/regex/engine.c esub += OPND(m->g->strip[esub]); g 580 ext/ereg/regex/engine.c if (OP(m->g->strip[esub]) == OOR2) g 583 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == O_CH); g 588 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); g 599 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); g 644 ext/ereg/regex/engine.c st = step(m->g, startst, stopst, st, NOTHING, st); g 658 ext/ereg/regex/engine.c if ( (lastc == '\n' && m->g->cflags®_NEWLINE) || g 661 ext/ereg/regex/engine.c i = m->g->nbol; g 663 ext/ereg/regex/engine.c if ( (c == '\n' && m->g->cflags®_NEWLINE) || g 666 ext/ereg/regex/engine.c i += m->g->neol; g 670 ext/ereg/regex/engine.c st = step(m->g, startst, stopst, st, flagch, st); g 684 ext/ereg/regex/engine.c st = step(m->g, startst, stopst, st, flagch, st); g 696 ext/ereg/regex/engine.c st = step(m->g, startst, stopst, tmp, c, st); g 698 ext/ereg/regex/engine.c assert(EQ(step(m->g, startst, stopst, st, NOTHING, st), st)); g 737 ext/ereg/regex/engine.c st = step(m->g, startst, stopst, st, NOTHING, st); g 747 ext/ereg/regex/engine.c if ( (lastc == '\n' && m->g->cflags®_NEWLINE) || g 750 ext/ereg/regex/engine.c i = m->g->nbol; g 752 ext/ereg/regex/engine.c if ( (c == '\n' && m->g->cflags®_NEWLINE) || g 755 ext/ereg/regex/engine.c i += m->g->neol; g 759 ext/ereg/regex/engine.c st = step(m->g, startst, stopst, st, flagch, st); g 773 ext/ereg/regex/engine.c st = step(m->g, startst, stopst, st, flagch, st); g 787 ext/ereg/regex/engine.c st = step(m->g, startst, stopst, tmp, c, st); g 789 ext/ereg/regex/engine.c assert(EQ(step(m->g, startst, stopst, st, NOTHING, st), st)); g 828 ext/ereg/regex/engine.c s = g->strip[pc]; g 860 ext/ereg/regex/engine.c cs = &g->sets[OPND(s)]; g 894 ext/ereg/regex/engine.c assert(OP(g->strip[pc+OPND(s)]) == OOR2); g 900 ext/ereg/regex/engine.c OP(s = g->strip[pc+look]) != O_CH; g 908 ext/ereg/regex/engine.c if (OP(g->strip[pc+OPND(s)]) != O_CH) { g 909 ext/ereg/regex/engine.c assert(OP(g->strip[pc+OPND(s)]) == OOR2); g 941 ext/ereg/regex/engine.c register struct re_guts *g = m->g; g 951 ext/ereg/regex/engine.c for (i = 0; i < g->nstates; i++) g 29 ext/ereg/regex/regcomp.c struct re_guts *g; g 94 ext/ereg/regex/regcomp.c register struct re_guts *g; g 116 ext/ereg/regex/regcomp.c g = (struct re_guts *)malloc(sizeof(struct re_guts) + g 118 ext/ereg/regex/regcomp.c if (g == NULL) g 124 ext/ereg/regex/regcomp.c free((char *) g); g 132 ext/ereg/regex/regcomp.c free((char *)g); g 137 ext/ereg/regex/regcomp.c p->g = g; g 146 ext/ereg/regex/regcomp.c g->csetsize = NC; g 147 ext/ereg/regex/regcomp.c g->sets = NULL; g 148 ext/ereg/regex/regcomp.c g->setbits = NULL; g 149 ext/ereg/regex/regcomp.c g->ncsets = 0; g 150 ext/ereg/regex/regcomp.c g->cflags = cflags; g 151 ext/ereg/regex/regcomp.c g->iflags = 0; g 152 ext/ereg/regex/regcomp.c g->nbol = 0; g 153 ext/ereg/regex/regcomp.c g->neol = 0; g 154 ext/ereg/regex/regcomp.c g->must = NULL; g 155 ext/ereg/regex/regcomp.c g->mlen = 0; g 156 ext/ereg/regex/regcomp.c g->nsub = 0; g 157 ext/ereg/regex/regcomp.c g->ncategories = 1; /* category 0 is "everything else" */ g 158 ext/ereg/regex/regcomp.c g->categories = &g->catspace[0]; g 159 ext/ereg/regex/regcomp.c (void) memset((char *)g->catspace, 0, NC*sizeof(cat_t)); g 160 ext/ereg/regex/regcomp.c g->backrefs = 0; g 164 ext/ereg/regex/regcomp.c g->firststate = THERE(); g 172 ext/ereg/regex/regcomp.c g->laststate = THERE(); g 175 ext/ereg/regex/regcomp.c categorize(p, g); g 176 ext/ereg/regex/regcomp.c stripsnug(p, g); g 177 ext/ereg/regex/regcomp.c findmust(p, g); g 178 ext/ereg/regex/regcomp.c g->nplus = pluscount(p, g); g 179 ext/ereg/regex/regcomp.c g->magic = MAGIC2; g 180 ext/ereg/regex/regcomp.c preg->re_nsub = g->nsub; g 181 ext/ereg/regex/regcomp.c preg->re_g = g; g 185 ext/ereg/regex/regcomp.c if (g->iflags&BAD) g 263 ext/ereg/regex/regcomp.c p->g->nsub++; g 264 ext/ereg/regex/regcomp.c subno = p->g->nsub; g 291 ext/ereg/regex/regcomp.c p->g->iflags |= USEBOL; g 292 ext/ereg/regex/regcomp.c p->g->nbol++; g 297 ext/ereg/regex/regcomp.c p->g->iflags |= USEEOL; g 298 ext/ereg/regex/regcomp.c p->g->neol++; g 309 ext/ereg/regex/regcomp.c if (p->g->cflags®_NEWLINE) g 427 ext/ereg/regex/regcomp.c p->g->iflags |= USEBOL; g 428 ext/ereg/regex/regcomp.c p->g->nbol++; g 437 ext/ereg/regex/regcomp.c p->g->iflags |= USEEOL; g 438 ext/ereg/regex/regcomp.c p->g->neol++; g 471 ext/ereg/regex/regcomp.c if (p->g->cflags®_NEWLINE) g 483 ext/ereg/regex/regcomp.c p->g->nsub++; g 484 ext/ereg/regex/regcomp.c subno = p->g->nsub; g 514 ext/ereg/regex/regcomp.c assert(i <= p->g->nsub); g 523 ext/ereg/regex/regcomp.c p->g->backrefs = 1; g 623 ext/ereg/regex/regcomp.c if (p->g->cflags®_ICASE) { g 627 ext/ereg/regex/regcomp.c for (i = p->g->csetsize - 1; i >= 0; i--) g 639 ext/ereg/regex/regcomp.c for (i = p->g->csetsize - 1; i >= 0; i--) g 644 ext/ereg/regex/regcomp.c if (p->g->cflags®_NEWLINE) g 878 ext/ereg/regex/regcomp.c register cat_t *cap = p->g->categories; g 880 ext/ereg/regex/regcomp.c if ((p->g->cflags®_ICASE) && isalpha(ch) && othercase(ch) != ch) g 885 ext/ereg/regex/regcomp.c cap[ch] = p->g->ncategories++; g 1011 ext/ereg/regex/regcomp.c register int no = p->g->ncsets++; g 1015 ext/ereg/regex/regcomp.c register size_t css = (size_t)p->g->csetsize; g 1023 ext/ereg/regex/regcomp.c if (p->g->sets == NULL) g 1024 ext/ereg/regex/regcomp.c p->g->sets = (cset *)malloc(nc * sizeof(cset)); g 1026 ext/ereg/regex/regcomp.c p->g->sets = (cset *)realloc((unsigned char *)p->g->sets, g 1028 ext/ereg/regex/regcomp.c if (p->g->setbits == NULL) g 1029 ext/ereg/regex/regcomp.c p->g->setbits = (uch *)malloc(nbytes); g 1031 ext/ereg/regex/regcomp.c p->g->setbits = (uch *)realloc((unsigned char *)p->g->setbits, g 1035 ext/ereg/regex/regcomp.c p->g->sets[i].ptr = p->g->setbits + css*(i/CHAR_BIT); g 1037 ext/ereg/regex/regcomp.c if (p->g->sets != NULL && p->g->setbits != NULL) g 1038 ext/ereg/regex/regcomp.c (void) memset((unsigned char *)p->g->setbits + (nbytes - css), g 1047 ext/ereg/regex/regcomp.c assert(p->g->sets != NULL); /* xxx */ g 1048 ext/ereg/regex/regcomp.c cs = &p->g->sets[no]; g 1049 ext/ereg/regex/regcomp.c cs->ptr = p->g->setbits + css*((no)/CHAR_BIT); g 1068 ext/ereg/regex/regcomp.c register cset *top = &p->g->sets[p->g->ncsets]; g 1069 ext/ereg/regex/regcomp.c register size_t css = (size_t)p->g->csetsize; g 1074 ext/ereg/regex/regcomp.c p->g->ncsets--; g 1094 ext/ereg/regex/regcomp.c register cset *top = &p->g->sets[p->g->ncsets]; g 1096 ext/ereg/regex/regcomp.c register size_t css = (size_t)p->g->csetsize; g 1099 ext/ereg/regex/regcomp.c for (cs2 = &p->g->sets[0]; cs2 < top; cs2++) g 1114 ext/ereg/regex/regcomp.c return((int)(cs - p->g->sets)); g 1127 ext/ereg/regex/regcomp.c register size_t css = (size_t)p->g->csetsize; g 1146 ext/ereg/regex/regcomp.c register size_t css = (size_t)p->g->csetsize; g 1284 ext/ereg/regex/regcomp.c register int ncols = (g->ncsets+(CHAR_BIT-1)) / CHAR_BIT; g 1287 ext/ereg/regex/regcomp.c if (!g->setbits) { g 1291 ext/ereg/regex/regcomp.c for (i = 0, col = g->setbits; i < ncols; i++, col += g->csetsize) g 1309 ext/ereg/regex/regcomp.c register int ncols = (g->ncsets+(CHAR_BIT-1)) / CHAR_BIT; g 1313 ext/ereg/regex/regcomp.c for (i = 0, col = g->setbits; i < ncols; i++, col += g->csetsize) g 1328 ext/ereg/regex/regcomp.c register cat_t *cats = g->categories; g 1338 ext/ereg/regex/regcomp.c if (cats[c] == 0 && isinsets(g, c)) { g 1339 ext/ereg/regex/regcomp.c cat = g->ncategories++; g 1342 ext/ereg/regex/regcomp.c if (cats[c2] == 0 && samesets(g, c, c2)) g 1491 ext/ereg/regex/regcomp.c g->nstates = p->slen; g 1492 ext/ereg/regex/regcomp.c g->strip = (sop *)realloc((unsigned char *)p->strip, p->slen * sizeof(sop)); g 1493 ext/ereg/regex/regcomp.c if (g->strip == NULL) { g 1495 ext/ereg/regex/regcomp.c g->strip = p->strip; g 1528 ext/ereg/regex/regcomp.c scan = g->strip + 1; g 1550 ext/ereg/regex/regcomp.c g->iflags |= BAD; g 1556 ext/ereg/regex/regcomp.c if (newlen > g->mlen) { /* ends one */ g 1558 ext/ereg/regex/regcomp.c g->mlen = newlen; g 1565 ext/ereg/regex/regcomp.c if (g->mlen == 0) /* there isn't one */ g 1569 ext/ereg/regex/regcomp.c g->mlen = 0; g 1574 ext/ereg/regex/regcomp.c g->must = malloc((size_t)g->mlen + 1); g 1575 ext/ereg/regex/regcomp.c if (g->must == NULL) { /* argh; just forget it */ g 1576 ext/ereg/regex/regcomp.c g->mlen = 0; g 1579 ext/ereg/regex/regcomp.c cp = g->must; g 1581 ext/ereg/regex/regcomp.c for (i = g->mlen; i > 0; i--) { g 1584 ext/ereg/regex/regcomp.c assert(cp < g->must + g->mlen); g 1587 ext/ereg/regex/regcomp.c assert(cp == g->must + g->mlen); g 1608 ext/ereg/regex/regcomp.c scan = g->strip + 1; g 1623 ext/ereg/regex/regcomp.c g->iflags |= BAD; g 71 ext/ereg/regex/regexec.c #define CLEAR(v) memset(v, 0, m->g->nstates) g 75 ext/ereg/regex/regexec.c #define ASSIGN(d, s) memcpy(d, s, m->g->nstates) g 76 ext/ereg/regex/regexec.c #define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0) g 78 ext/ereg/regex/regexec.c #define STATESETUP(m, nv) { (m)->space = malloc((nv)*(m)->g->nstates); \ g 82 ext/ereg/regex/regexec.c #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates]) g 120 ext/ereg/regex/regexec.c register struct re_guts *g = preg->re_g; g 127 ext/ereg/regex/regexec.c if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) g 129 ext/ereg/regex/regexec.c assert(!(g->iflags&BAD)); g 130 ext/ereg/regex/regexec.c if (g->iflags&BAD) /* backstop for no-debug case */ g 134 ext/ereg/regex/regexec.c if (g->nstates <= CHAR_BIT*sizeof(states1) && !(eflags®_LARGE)) g 135 ext/ereg/regex/regexec.c return(smatcher(g, (unsigned char *)string, nmatch, pmatch, eflags)); g 137 ext/ereg/regex/regexec.c return(lmatcher(g, (unsigned char *)string, nmatch, pmatch, eflags)); g 17 ext/ereg/regex/regfree.c register struct re_guts *g; g 22 ext/ereg/regex/regfree.c g = preg->re_g; g 23 ext/ereg/regex/regfree.c if (g == NULL || g->magic != MAGIC2) /* oops again */ g 26 ext/ereg/regex/regfree.c g->magic = 0; /* mark it invalid */ g 28 ext/ereg/regex/regfree.c if (g->strip != NULL) g 29 ext/ereg/regex/regfree.c free((char *)g->strip); g 30 ext/ereg/regex/regfree.c if (g->sets != NULL) g 31 ext/ereg/regex/regfree.c free((char *)g->sets); g 32 ext/ereg/regex/regfree.c if (g->setbits != NULL) g 33 ext/ereg/regex/regfree.c free((char *)g->setbits); g 34 ext/ereg/regex/regfree.c if (g->must != NULL) g 35 ext/ereg/regex/regfree.c free(g->must); g 36 ext/ereg/regex/regfree.c free((char *)g); g 4690 ext/gd/gd.c long r,g,b,tmp; g 4693 ext/gd/gd.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rllll|l", &SIM, &tmp, &r, &g, &b, &a) == FAILURE) { g 4703 ext/gd/gd.c if (gdImageColor(im_src, (int) r, (int) g, (int) b, (int) a) == 1) { g 263 ext/gd/libgd/gd.c return gdImageColorClosestAlpha (im, r, g, b, gdAlphaOpaque); g 275 ext/gd/libgd/gd.c return gdTrueColorAlpha(r, g, b, a); g 283 ext/gd/libgd/gd.c gd = im->green[i] - g; g 303 ext/gd/libgd/gd.c #define RETURN_RGB(r, g, b) {RGB->R = r; RGB->G = g; RGB->B = b; return RGB;} g 305 ext/gd/libgd/gd.c #define SETUP_RGB(s, r, g, b) {s.R = r/255.0f; s.G = g/255.0f; s.B = b/255.0f;} g 440 ext/gd/libgd/gd.c return gdTrueColor(r, g, b); g 447 ext/gd/libgd/gd.c dist = HWB_Diff(im->red[i], im->green[i], im->blue[i], r, g, b); g 459 ext/gd/libgd/gd.c return gdImageColorExactAlpha (im, r, g, b, gdAlphaOpaque); g 466 ext/gd/libgd/gd.c return gdTrueColorAlpha(r, g, b, a); g 472 ext/gd/libgd/gd.c if ((im->red[i] == r) && (im->green[i] == g) && (im->blue[i] == b) && (im->alpha[i] == a)) { g 481 ext/gd/libgd/gd.c return gdImageColorAllocateAlpha (im, r, g, b, gdAlphaOpaque); g 489 ext/gd/libgd/gd.c return gdTrueColorAlpha(r, g, b, a); g 505 ext/gd/libgd/gd.c im->green[ct] = g; g 526 ext/gd/libgd/gd.c return gdImageColorResolveAlpha(im, r, g, b, gdAlphaOpaque); g 538 ext/gd/libgd/gd.c return gdTrueColorAlpha (r, g, b, a); g 555 ext/gd/libgd/gd.c gd = (long) (im->green[c] - g); g 580 ext/gd/libgd/gd.c im->green[op] = g; g 1270 ext/gd/libgd/gd.c int dr,dg,db,p,r,g,b; g 1277 ext/gd/libgd/gd.c g = gdTrueColorGetGreen(p); g 1281 ext/gd/libgd/gd.c BLEND_COLOR(t, dg, g, dg); g 2297 ext/gd/libgd/gd.c float g; g 2320 ext/gd/libgd/gd.c g = (0.29900f * gdImageRed(dst, dc)) + (0.58700f * gdImageGreen(dst, dc)) + (0.11400f * gdImageBlue(dst, dc)); g 2322 ext/gd/libgd/gd.c ncR = (int)(gdImageRed (src, c) * (pct / 100.0f) + g * ((100 - pct) / 100.0)); g 2323 ext/gd/libgd/gd.c ncG = (int)(gdImageGreen (src, c) * (pct / 100.0f) + g * ((100 - pct) / 100.0)); g 2324 ext/gd/libgd/gd.c ncB = (int)(gdImageBlue (src, c) * (pct / 100.0f) + g * ((100 - pct) / 100.0)); g 508 ext/gd/libgd/gd.h int gdImageColorAllocate(gdImagePtr im, int r, int g, int b); g 510 ext/gd/libgd/gd.h int gdImageColorAllocateAlpha(gdImagePtr im, int r, int g, int b, int a); g 512 ext/gd/libgd/gd.h int gdImageColorClosest(gdImagePtr im, int r, int g, int b); g 517 ext/gd/libgd/gd.h int gdImageColorClosestAlpha(gdImagePtr im, int r, int g, int b, int a); g 519 ext/gd/libgd/gd.h int gdImageColorClosestHWB(gdImagePtr im, int r, int g, int b); g 521 ext/gd/libgd/gd.h int gdImageColorExact(gdImagePtr im, int r, int g, int b); g 523 ext/gd/libgd/gd.h int gdImageColorExactAlpha(gdImagePtr im, int r, int g, int b, int a); g 525 ext/gd/libgd/gd.h int gdImageColorResolve(gdImagePtr im, int r, int g, int b); g 527 ext/gd/libgd/gd.h int gdImageColorResolveAlpha(gdImagePtr im, int r, int g, int b, int a); g 533 ext/gd/libgd/gd.h ((g) << 8) + \ g 542 ext/gd/libgd/gd.h ((g) << 8) + \ g 63 ext/gd/libgd/gd_arc_f_buggy.c long g; /* decision variable */ g 297 ext/gd/libgd/gd_arc_f_buggy.c g = x2 - 1; g 298 ext/gd/libgd/gd_arc_f_buggy.c g = g * g * hs + 4 * ws - whs; g 303 ext/gd/libgd/gd_arc_f_buggy.c g += ws * 4 * (y2 + 1); g 305 ext/gd/libgd/gd_arc_f_buggy.c if (g > 0) /* Need to drop */ g 308 ext/gd/libgd/gd_arc_f_buggy.c g -= hs * 4 * x2; g 331 ext/gd/libgd/gd_arc_f_buggy.c g = y2 - 1; g 332 ext/gd/libgd/gd_arc_f_buggy.c g = g * g * ws + 4 * hs - whs; g 337 ext/gd/libgd/gd_arc_f_buggy.c g += hs * 4 * (x2 + 1); g 339 ext/gd/libgd/gd_arc_f_buggy.c if (g > 0) /* Need to drop */ g 342 ext/gd/libgd/gd_arc_f_buggy.c g -= ws * 4 * y2; g 414 ext/gd/libgd/gd_arc_f_buggy.c g = x2 - 1; g 415 ext/gd/libgd/gd_arc_f_buggy.c g = g * g * hs + 4 * ws - whs; g 423 ext/gd/libgd/gd_arc_f_buggy.c g += ws * 4 * (y2 + 1); g 425 ext/gd/libgd/gd_arc_f_buggy.c if (g > 0) /* Need to drop */ g 428 ext/gd/libgd/gd_arc_f_buggy.c g -= hs * 4 * x2; g 441 ext/gd/libgd/gd_arc_f_buggy.c g += ws * 4 * (y2 + 1); g 443 ext/gd/libgd/gd_arc_f_buggy.c if (g > 0) /* Need to drop */ g 446 ext/gd/libgd/gd_arc_f_buggy.c g -= hs * 4 * x2; g 479 ext/gd/libgd/gd_arc_f_buggy.c g = y2 - 1; g 480 ext/gd/libgd/gd_arc_f_buggy.c g = g * g * ws + 4 * hs - whs; g 485 ext/gd/libgd/gd_arc_f_buggy.c g += hs * 4 * (x2 + 1); g 487 ext/gd/libgd/gd_arc_f_buggy.c if (g > 0) /* Need to drop */ g 490 ext/gd/libgd/gd_arc_f_buggy.c g -= ws * 4 * y2; g 506 ext/gd/libgd/gd_arc_f_buggy.c g += hs * 4 * (x2 + 1); g 508 ext/gd/libgd/gd_arc_f_buggy.c if (g > 0) /* Need to drop */ g 511 ext/gd/libgd/gd_arc_f_buggy.c g -= ws * 4 * y2; g 555 ext/gd/libgd/gd_arc_f_buggy.c long g; /* decision variable */ g 636 ext/gd/libgd/gd_arc_f_buggy.c g = x2 - 1; g 637 ext/gd/libgd/gd_arc_f_buggy.c g = g * g * hs + 4 * ws - whs; g 642 ext/gd/libgd/gd_arc_f_buggy.c g += ws * 4 * (y2 + 1); g 644 ext/gd/libgd/gd_arc_f_buggy.c if (g > 0) /* Need to drop */ g 647 ext/gd/libgd/gd_arc_f_buggy.c g -= hs * 4 * x2; g 663 ext/gd/libgd/gd_arc_f_buggy.c g = y2 - 1; g 664 ext/gd/libgd/gd_arc_f_buggy.c g = g * g * ws + 4 * hs - whs; g 669 ext/gd/libgd/gd_arc_f_buggy.c g += hs * 4 * (x2 + 1); g 671 ext/gd/libgd/gd_arc_f_buggy.c if (g > 0) /* Need to drop */ g 674 ext/gd/libgd/gd_arc_f_buggy.c g -= ws * 4 * y2; g 333 ext/gd/libgd/gd_crop.c register int r,b,g,a; g 336 ext/gd/libgd/gd_crop.c g = (int)(0.5f + (gdImageGreen(im, tl) + gdImageGreen(im, tr) + gdImageGreen(im, bl) + gdImageGreen(im, br)) / 4); g 339 ext/gd/libgd/gd_crop.c *color = gdImageColorClosestAlpha(im, r, g, b, a); g 19 ext/gd/libgd/gd_filter.c int r,g,b,a; g 34 ext/gd/libgd/gd_filter.c g = gdImageGreen(src, pxl); g 38 ext/gd/libgd/gd_filter.c new_pxl = gdImageColorAllocateAlpha(src, 255-r, 255-g, 255-b, a); g 40 ext/gd/libgd/gd_filter.c new_pxl = gdImageColorClosestAlpha(src, 255-r, 255-g, 255-b, a); g 52 ext/gd/libgd/gd_filter.c int r,g,b,a; g 66 ext/gd/libgd/gd_filter.c g = gdImageGreen(src, pxl); g 69 ext/gd/libgd/gd_filter.c r = g = b = (int) (.299 * r + .587 * g + .114 * b); g 71 ext/gd/libgd/gd_filter.c new_pxl = gdImageColorAllocateAlpha(src, r, g, b, a); g 73 ext/gd/libgd/gd_filter.c new_pxl = gdImageColorClosestAlpha(src, r, g, b, a); g 85 ext/gd/libgd/gd_filter.c int r,g,b,a; g 104 ext/gd/libgd/gd_filter.c g = gdImageGreen(src, pxl); g 109 ext/gd/libgd/gd_filter.c g = g + brightness; g 113 ext/gd/libgd/gd_filter.c g = (g > 255)? 255 : ((g < 0)? 0:g); g 116 ext/gd/libgd/gd_filter.c new_pxl = gdImageColorAllocateAlpha(src, (int)r, (int)g, (int)b, a); g 118 ext/gd/libgd/gd_filter.c new_pxl = gdImageColorClosestAlpha(src, (int)r, (int)g, (int)b, a); g 130 ext/gd/libgd/gd_filter.c int r,g,b,a; g 150 ext/gd/libgd/gd_filter.c g = gdImageGreen(src, pxl); g 166 ext/gd/libgd/gd_filter.c gf = (double)g/255.0; g 202 ext/gd/libgd/gd_filter.c int r,g,b,a; g 206 ext/gd/libgd/gd_filter.c g = gdImageGreen(src, pxl); g 211 ext/gd/libgd/gd_filter.c g = g + green; g 216 ext/gd/libgd/gd_filter.c g = (g > 255)? 255 : ((g < 0)? 0 : g); g 220 ext/gd/libgd/gd_filter.c new_pxl = gdImageColorAllocateAlpha(src, r, g, b, a); g 222 ext/gd/libgd/gd_filter.c new_pxl = gdImageColorClosestAlpha(src, r, g, b, a); g 346 ext/gd/libgd/gd_gd2.c int g = chunkBuf[chunkPos++] << 8; g 348 ext/gd/libgd/gd_gd2.c im->tpixels[y][x] = a + r + g + b; g 762 ext/gd/libgd/gd_interpolation.c int r, g, b, a; g 770 ext/gd/libgd/gd_interpolation.c g = (int)(m1*gdTrueColorGetGreen(c1) + m2*gdTrueColorGetGreen(c2) + m3*gdTrueColorGetGreen(c3) + m4*gdTrueColorGetGreen(c4)); g 775 ext/gd/libgd/gd_interpolation.c g = (int)(m1*im->green[(c1)] + m2*im->green[(c2)] + m3*im->green[(c3)] + m4*im->green[(c4)]); g 781 ext/gd/libgd/gd_interpolation.c g = CLAMP(g, 0, 255); g 784 ext/gd/libgd/gd_interpolation.c return gdTrueColorAlpha(r, g, b, a); g 974 ext/gd/libgd/gd_interpolation.c register unsigned char r = 0, g = 0, b = 0, a = 0; g 983 ext/gd/libgd/gd_interpolation.c g += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * (double)(gdTrueColorGetGreen(p_src_row[i]))); g 987 ext/gd/libgd/gd_interpolation.c p_dst_row[x] = gdTrueColorAlpha(r, g, b, a); g 1019 ext/gd/libgd/gd_interpolation.c register unsigned char r = 0, g = 0, b = 0, a = 0; g 1030 ext/gd/libgd/gd_interpolation.c g += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetGreen(pCurSrc))); g 1034 ext/gd/libgd/gd_interpolation.c pRes->tpixels[y][uCol] = gdTrueColorAlpha(r, g, b, a); g 26 ext/gd/libgd/gd_pixelate.c int a, r, g, b, c; g 30 ext/gd/libgd/gd_pixelate.c a = r = g = b = c = total = 0; g 40 ext/gd/libgd/gd_pixelate.c g += gdImageGreen(im, c); g 47 ext/gd/libgd/gd_pixelate.c c = gdImageColorResolveAlpha(im, r / total, g / total, b / total, a / total); g 364 ext/gd/libgd/gd_png.c register png_byte g = row_pointers[h][boffset++]; g 366 ext/gd/libgd/gd_png.c im->tpixels[h][w] = gdTrueColor (r, g, b); g 377 ext/gd/libgd/gd_png.c register png_byte g = row_pointers[h][boffset++]; g 386 ext/gd/libgd/gd_png.c im->tpixels[h][w] = gdTrueColorAlpha(r, g, b, a); g 23 ext/gd/libgd/gd_rotate.c int i, r, g, b, a, clrBackR, clrBackG, clrBackB, clrBackA; g 54 ext/gd/libgd/gd_rotate.c g = (int)(gdImageGreen(src,pxlSrc) * dWeight); g 58 ext/gd/libgd/gd_rotate.c pxlLeft = gdImageColorAllocateAlpha(src, r, g, b, a); g 61 ext/gd/libgd/gd_rotate.c pxlLeft = gdImageColorClosestAlpha(src, r, g, b, a); g 65 ext/gd/libgd/gd_rotate.c g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); g 73 ext/gd/libgd/gd_rotate.c if (g>255) { g 74 ext/gd/libgd/gd_rotate.c g = 255; g 88 ext/gd/libgd/gd_rotate.c pxlSrc = gdImageColorAllocateAlpha(dst, r, g, b, a); g 91 ext/gd/libgd/gd_rotate.c pxlSrc = gdImageColorClosestAlpha(dst, r, g, b, a); g 120 ext/gd/libgd/gd_rotate.c int i, iYPos=0, r, g, b, a; g 134 ext/gd/libgd/gd_rotate.c g = (int)((double)gdImageGreen(src,clrBack) * dWeight); g 138 ext/gd/libgd/gd_rotate.c pxlOldLeft = gdImageColorAllocateAlpha(dst, r, g, b, a); g 145 ext/gd/libgd/gd_rotate.c g = (int)((double)gdImageGreen(src,pxlSrc) * dWeight); g 149 ext/gd/libgd/gd_rotate.c pxlLeft = gdImageColorAllocateAlpha(src, r, g, b, a); g 152 ext/gd/libgd/gd_rotate.c pxlLeft = gdImageColorClosestAlpha(src, r, g, b, a); g 156 ext/gd/libgd/gd_rotate.c g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); g 164 ext/gd/libgd/gd_rotate.c if (g>255) { g 165 ext/gd/libgd/gd_rotate.c g = 255; g 179 ext/gd/libgd/gd_rotate.c pxlSrc = gdImageColorAllocateAlpha(dst, r, g, b, a); g 182 ext/gd/libgd/gd_rotate.c pxlSrc = gdImageColorClosestAlpha(dst, r, g, b, a); g 208 ext/gd/libgd/gd_rotate.c int c,r,g,b,a; g 233 ext/gd/libgd/gd_rotate.c g = gdImageGreen(src,c); g 236 ext/gd/libgd/gd_rotate.c c = gdTrueColorAlpha(r, g, b, a); g 255 ext/gd/libgd/gd_rotate.c int c,r,g,b,a; g 280 ext/gd/libgd/gd_rotate.c g = gdImageGreen(src,c); g 283 ext/gd/libgd/gd_rotate.c c = gdTrueColorAlpha(r, g, b, a); g 303 ext/gd/libgd/gd_rotate.c int c,r,g,b,a; g 328 ext/gd/libgd/gd_rotate.c g = gdImageGreen(src,c); g 331 ext/gd/libgd/gd_rotate.c c = gdTrueColorAlpha(r, g, b, a); g 371 ext/gd/libgd/gd_topal.c int g = GETJSAMPLE (ptr[1]) >> C1_SHIFT; g 375 ext/gd/libgd/gd_topal.c int g = gdTrueColorGetGreen (*ptr) >> C1_SHIFT; g 386 ext/gd/libgd/gd_topal.c histp = &histogram[r][g][b]; g 1143 ext/gd/libgd/gd_topal.c int r, g, b; g 1148 ext/gd/libgd/gd_topal.c g = GETJSAMPLE (cinfo->colormap[1][icolor]); g 1153 ext/gd/libgd/gd_topal.c g = nim->green[icolor]; g 1160 ext/gd/libgd/gd_topal.c inc1 = (minc1 - g) * C1_SCALE; g 1315 ext/gd/libgd/gd_topal.c int r, g, b; g 1318 ext/gd/libgd/gd_topal.c g = GETJSAMPLE (*inptr++); g 1322 ext/gd/libgd/gd_topal.c g = gdTrueColorGetGreen (*inptr); g 1341 ext/gd/libgd/gd_topal.c c1 = g >> C1_SHIFT; g 103 ext/gd/libgd/webpimg.c const int luma = 16839 * r + 33059 * g + 6420 * b; g 109 ext/gd/libgd/webpimg.c const int g = GetGreen(rgba); g 111 ext/gd/libgd/webpimg.c return GetLumaY(r, g, b); g 116 ext/gd/libgd/webpimg.c return clip_uv(-9719 * r - 19081 * g + 28800 * b); g 121 ext/gd/libgd/webpimg.c return clip_uv(+28800 * r - 24116 * g - 4684 * b); g 156 ext/gd/libgd/webpimg.c const int g = kClip[y + g_off - RGB_RANGE_MIN]; g 158 ext/gd/libgd/webpimg.c *dst = (r << RED_SHIFT) | (g << GREEN_SHIFT) | (b << BLUE_SHIFT); g 483 ext/hash/hash_sha.c php_hash_uint32 e = state[4], f = state[5], g = state[6], h = state[7]; g 498 ext/hash/hash_sha.c T1 = h + SHA256_F3(e) + SHA256_F0(e,f,g) + SHA256_K[i] + W[i]; g 500 ext/hash/hash_sha.c h = g; g = f; f = e; e = d + T1; g 510 ext/hash/hash_sha.c state[6] += g; g 793 ext/hash/hash_sha.c php_hash_uint64 e = state[4], f = state[5], g = state[6], h = state[7]; g 808 ext/hash/hash_sha.c T1 = h + SHA512_F3(e) + SHA512_F0(e,f,g) + SHA512_K[i] + W[i]; g 810 ext/hash/hash_sha.c h = g; g = f; f = e; e = d + T1; g 820 ext/hash/hash_sha.c state[6] += g; g 534 ext/mbstring/oniguruma/st.c register unsigned int h = 0, g; g 538 ext/mbstring/oniguruma/st.c if ( g = h & 0xF0000000 ) g 539 ext/mbstring/oniguruma/st.c h ^= g >> 24; g 540 ext/mbstring/oniguruma/st.c h &= ~g; g 55 ext/mbstring/php_mbregex.c #define MBREX(g) (MBSTRG(mb_regex_globals)->g) g 3135 ext/openssl/openssl.c OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dsa, g); g 3138 ext/openssl/openssl.c if (dsa->p && dsa->q && dsa->g) { g 3158 ext/openssl/openssl.c OPENSSL_PKEY_SET_BN(Z_ARRVAL_PP(data), dh, g); g 3161 ext/openssl/openssl.c if (dh->p && dh->g) { g 3435 ext/openssl/openssl.c OPENSSL_PKEY_GET_BN(dsa, g); g 3451 ext/openssl/openssl.c OPENSSL_PKEY_GET_BN(dh, g); g 919 ext/posix/posix.c if (NULL == g) g 928 ext/posix/posix.c add_assoc_string(array_group, "name", g->gr_name, 1); g 929 ext/posix/posix.c add_assoc_string(array_group, "passwd", g->gr_passwd, 1); g 930 ext/posix/posix.c for (count=0; g->gr_mem[count] != NULL; count++) { g 931 ext/posix/posix.c add_next_index_string(array_members, g->gr_mem[count], 1); g 934 ext/posix/posix.c add_assoc_long(array_group, "gid", g->gr_gid); g 994 ext/posix/posix.c struct group *g; g 1012 ext/posix/posix.c g = &gbuf; g 1014 ext/posix/posix.c if (getgrnam_r(name, g, buf, buflen, &g) || g == NULL) { g 1020 ext/posix/posix.c if (NULL == (g = getgrnam(name))) { g 1027 ext/posix/posix.c if (!php_posix_group_to_array(g, return_value)) { g 1050 ext/posix/posix.c struct group *g; g 1070 ext/posix/posix.c g = &_g; g 1072 ext/posix/posix.c if (NULL == (g = getgrgid(gid))) { g 1079 ext/posix/posix.c if (!php_posix_group_to_array(g, return_value)) { g 123 ext/standard/crypt_sha256.c uint32_t g = ctx->H[6]; g 144 ext/standard/crypt_sha256.c uint32_t g_save = g; g 169 ext/standard/crypt_sha256.c uint32_t T1 = h + S1 (e) + Ch (e, f, g) + K[t] + W[t]; g 171 ext/standard/crypt_sha256.c h = g; g 172 ext/standard/crypt_sha256.c g = f; g 189 ext/standard/crypt_sha256.c g += g_save; g 203 ext/standard/crypt_sha256.c ctx->H[6] = g; g 147 ext/standard/crypt_sha512.c uint64_t g = ctx->H[6]; g 168 ext/standard/crypt_sha512.c uint64_t g_save = g; g 196 ext/standard/crypt_sha512.c uint64_t T1 = h + S1 (e) + Ch (e, f, g) + K[t] + W[t]; g 198 ext/standard/crypt_sha512.c h = g; g 199 ext/standard/crypt_sha512.c g = f; g 216 ext/standard/crypt_sha512.c g += g_save; g 230 ext/standard/crypt_sha512.c ctx->H[6] = g; g 1243 sapi/fpm/fpm/fpm_conf.c glob_t g; g 1253 sapi/fpm/fpm/fpm_conf.c g.gl_offs = 0; g 1254 sapi/fpm/fpm/fpm_conf.c if ((i = glob(inc, GLOB_ERR | GLOB_MARK, NULL, &g)) != 0) { g 1268 sapi/fpm/fpm/fpm_conf.c for (i = 0; i < g.gl_pathc; i++) { g 1269 sapi/fpm/fpm/fpm_conf.c int len = strlen(g.gl_pathv[i]); g 1271 sapi/fpm/fpm/fpm_conf.c if (g.gl_pathv[i][len - 1] == '/') continue; /* don't parse directories */ g 1272 sapi/fpm/fpm/fpm_conf.c if (0 > fpm_conf_load_ini_file(g.gl_pathv[i] TSRMLS_CC)) { g 1273 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "Unable to include %s from %s at line %d", g.gl_pathv[i], filename, ini_lineno); g 1279 sapi/fpm/fpm/fpm_conf.c globfree(&g);