Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 69) sorted by relevance

123

/redis-3.2.3/deps/lua/src/
H A Dprint.c172 f->linedefined,f->lastlinedefined, in PrintHeader()
173 S(f->sizecode),f->sizecode*Sizeof(Instruction),VOID(f)); in PrintHeader()
175 f->numparams,f->is_vararg?"+":"",SS(f->numparams), in PrintHeader()
176 S(f->maxstacksize),S(f->nups)); in PrintHeader()
178 S(f->sizelocvars),S(f->sizek),S(f->sizep)); in PrintHeader()
183 int i,n=f->sizek; in PrintConstants()
200 i,getstr(f->locvars[i].varname),f->locvars[i].startpc+1,f->locvars[i].endpc+1); in PrintLocals()
217 int i,n=f->sizep; in PrintFunction()
218 PrintHeader(f); in PrintFunction()
219 PrintCode(f); in PrintFunction()
[all …]
H A Dlundump.c94 f->sizecode=n; in LoadCode()
105 f->sizek=n; in LoadConstants()
132 f->sizep=n; in LoadConstants()
134 for (i=0; i<n; i++) f->p[i]=LoadFunction(S,f->source); in LoadConstants()
142 f->sizelineinfo=n; in LoadDebug()
146 f->sizelocvars=n; in LoadDebug()
163 Proto* f; in LoadFunction() local
167 f->source=LoadString(S); if (f->source==NULL) f->source=p; in LoadFunction()
174 LoadCode(S,f); in LoadFunction()
176 LoadDebug(S,f); in LoadFunction()
[all …]
H A Dlfunc.c118 f->k = NULL; in luaF_newproto()
119 f->sizek = 0; in luaF_newproto()
120 f->p = NULL; in luaF_newproto()
121 f->sizep = 0; in luaF_newproto()
126 f->nups = 0; in luaF_newproto()
137 return f; in luaF_newproto()
142 luaM_freearray(L, f->code, f->sizecode, Instruction); in luaF_freeproto()
143 luaM_freearray(L, f->p, f->sizep, Proto *); in luaF_freeproto()
144 luaM_freearray(L, f->k, f->sizek, TValue); in luaF_freeproto()
145 luaM_freearray(L, f->lineinfo, f->sizelineinfo, int); in luaF_freeproto()
[all …]
H A Dldump.c76 #define DumpCode(f,D) DumpVector(f->code,f->sizecode,sizeof(Instruction),D) argument
82 int i,n=f->sizek; in DumpConstants()
86 const TValue* o=&f->k[i]; in DumpConstants()
106 n=f->sizep; in DumpConstants()
108 for (i=0; i<n; i++) DumpFunction(f->p[i],f->source,D); in DumpConstants()
131 DumpString((f->source==p || D->strip) ? NULL : f->source,D); in DumpFunction()
134 DumpChar(f->nups,D); in DumpFunction()
138 DumpCode(f,D); in DumpFunction()
139 DumpConstants(f,D); in DumpFunction()
140 DumpDebug(f,D); in DumpFunction()
[all …]
H A Dliolib.c74 if (*f == NULL) in tofile()
76 return *f; in tofile()
145 if (f != NULL) in io_gc()
153 if (f == NULL) in io_tostring()
191 FILE *f; in getiofile() local
194 if (f == NULL) in getiofile()
196 return f; in getiofile()
288 ungetc(c, f); in test_eof()
338 clearerr(f); in g_read()
371 if (ferror(f)) in g_read()
[all …]
H A Dluac.c126 Proto* f=luaF_newproto(L); in combine() local
129 f->maxstacksize=1; in combine()
132 f->sizecode=pc; in combine()
133 f->p=luaM_newvector(L,n,Proto*); in combine()
134 f->sizep=n; in combine()
138 f->p[i]=toproto(L,i-n-1); in combine()
143 return f; in combine()
163 const Proto* f; in pmain() local
171 f=combine(L,argc); in pmain()
172 if (listing) luaU_print(f,listing>1); in pmain()
[all …]
H A Dlparser.c145 Proto *f = fs->f; in registerlocalvar() local
185 Proto *f = fs->f; in indexupvalue() local
195 luaM_growvector(fs->L, f->upvalues, f->nups, f->sizeupvalues, in indexupvalue()
198 f->upvalues[f->nups] = name; in indexupvalue()
312 Proto *f = fs->f; in pushclosure() local
318 f->p[fs->np++] = func->f; in pushclosure()
319 luaC_objbarrier(ls->L, f, func->f); in pushclosure()
331 fs->f = f; in open_func()
359 Proto *f = fs->f; in close_func() local
373 f->sizeupvalues = f->nups; in close_func()
[all …]
H A Dlcode.c232 Proto *f = fs->f; in addk() local
233 int oldsize = f->sizek; in addk()
240 luaM_growvector(L, f->k, fs->nk, f->sizek, TValue, in addk()
242 while (oldsize < f->sizek) setnilvalue(&f->k[oldsize++]); in addk()
582 e->f = NO_JUMP; in luaK_goiffalse()
615 { int temp = e->f; e->f = e->t; e->t = temp; } in codenot()
742 luaK_concat(fs, &e2->f, e1->f); in luaK_posfix()
790 Proto *f = fs->f; in luaK_code() local
793 luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction, in luaK_code()
795 f->code[fs->pc] = i; in luaK_code()
[all …]
H A Dlua_struct.c42 #define luaL_register(L,n,f) luaL_newlib(L,f) argument
234 float f = (float)luaL_checknumber(L, arg++); in b_pack() local
235 correctbytes((char *)&f, size, h.endian); in b_pack()
236 luaL_addlstring(&b, (char *)&f, size); in b_pack()
319 float f; in b_unpack() local
320 memcpy(&f, data+pos, size); in b_unpack()
321 correctbytes((char *)&f, sizeof(f), h.endian); in b_unpack()
322 lua_pushnumber(L, f); in b_unpack()
H A Dldebug.h16 #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) argument
H A Dlauxlib.c524 FILE *f; member
537 if (feof(lf->f)) return NULL; in getF()
538 *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); in getF()
560 lf.f = stdin; in luaL_loadfile()
564 lf.f = fopen(filename, "r"); in luaL_loadfile()
565 if (lf.f == NULL) return errfile(L, "open", fnameindex); in luaL_loadfile()
567 c = getc(lf.f); in luaL_loadfile()
571 if (c == '\n') c = getc(lf.f); in luaL_loadfile()
574 lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */ in luaL_loadfile()
580 ungetc(c, lf.f); in luaL_loadfile()
[all …]
H A Dldebug.c178 if (f == NULL || f->c.isC) { in collectvalidlines()
183 int *lineinfo = f->l.p->lineinfo; in collectvalidlines()
196 if (f == NULL) { in auxgetinfo()
203 funcinfo(ar, f); in auxgetinfo()
211 ar->nups = f->c.nupvalues; in auxgetinfo()
234 Closure *f = NULL; in lua_getinfo() local
241 f = clvalue(func); in lua_getinfo()
247 f = clvalue(ci->func); in lua_getinfo()
251 if (f == NULL) setnilvalue(L->top); in lua_getinfo()
252 else setclvalue(L, L->top, f); in lua_getinfo()
[all …]
H A Dloadlib.c76 lua_CFunction f = (lua_CFunction)dlsym(lib, sym); in ll_sym() local
77 if (f == NULL) lua_pushstring(L, dlerror()); in ll_sym()
78 return f; in ll_sym()
136 if (f == NULL) pusherror(L); in ll_sym()
137 return f; in ll_sym()
300 lua_CFunction f = ll_sym(L, *reg, sym); in ll_loadfunc() local
301 if (f == NULL) in ll_loadfunc()
303 lua_pushcfunction(L, f); in ll_loadfunc()
333 FILE *f = fopen(filename, "r"); /* try to open file */ in readable() local
334 if (f == NULL) return 0; /* open failed */ in readable()
[all …]
/redis-3.2.3/deps/lua/test/
H A Dbisect.lua5 function bisect(f,a,b,fa,fb)
10 local fc=f(c)
11 if fa*fc<0 then return bisect(f,a,c,fa,fc) else return bisect(f,c,b,fc,fb) end
15 function solve(f,a,b)
17 local z,e=bisect(f,a,b,f(a),f(b))
18 io.write(string.format("after %d steps, root is %.17g with error %.1e, f=%.1e\n",n,z,e,f(z)))
22 function f(x) function
27 solve(f,1,2)
H A Dfactorial.lua5 local a = function (f) return f(f) end
6 return a(function (f)
8 local c=f(f)
16 F = function (f)
19 else return n*f(n-1) end
H A Dsort.lua5 function qsort(x,l,u,f)
14 if f(x[i],t) then
22 qsort(x,l,m-1,f)
23 qsort(x,m+1,u,f)
27 function selectionsort(x,n,f)
32 if f(x[j],x[m]) then m=j end
H A Dfib.lua14 function cache(f)
19 y=f(x)
27 function test(s,f)
30 local v=f(n)
H A Dluac.lua5 f=assert(io.open("luac.out","wb"))
6 assert(f:write(string.dump(assert(loadfile(arg[1])))))
7 assert(f:close())
H A Denv.lua3 local f=function (t,i) return os.getenv(i) end function
4 setmetatable(getfenv(),{__index=f})
/redis-3.2.3/deps/jemalloc/src/
H A Dutil.c404 f++; in malloc_vsnprintf()
426 f++; in malloc_vsnprintf()
433 f++; in malloc_vsnprintf()
453 f++; in malloc_vsnprintf()
460 f++; in malloc_vsnprintf()
478 f++; in malloc_vsnprintf()
487 f++; in malloc_vsnprintf()
498 f++; in malloc_vsnprintf()
508 f++; in malloc_vsnprintf()
517 f++; in malloc_vsnprintf()
[all …]
/redis-3.2.3/src/
H A Dquicklist.c1652 for (int f = optimize_start; f < 32; f++) { in quicklistTest() local
1666 for (int f = optimize_start; f < 32; f++) { in quicklistTest() local
1680 for (int f = optimize_start; f < 512; f++) { in quicklistTest() local
1694 for (int f = optimize_start; f < 512; f++) { in quicklistTest() local
1715 for (int f = optimize_start; f < 32; f++) { in quicklistTest() local
1727 for (int f = optimize_start; f < 3; f++) { in quicklistTest() local
1923 for (int f = optimize_start; f < 12; f++) { in quicklistTest() local
2279 for (int f = optimize_start; f < 16; f++) { in quicklistTest() local
2363 for (int f = optimize_start; f < 16; f++) { in quicklistTest() local
2430 for (int f = optimize_start; f < 40; f++) { in quicklistTest() local
[all …]
/redis-3.2.3/deps/jemalloc/
H A Dcoverage.sh14 for f in `find . -maxdepth 1 -type f -name '*.gcov'` ; do
15 mv "${f}" "${f}.${suffix}"
/redis-3.2.3/deps/jemalloc/test/unit/
H A Dql.c166 list_t *a, *b, *c, *d, *e, *f, *g, *h; in TEST_BEGIN() local
175 f = &entries[5]; in TEST_BEGIN()
185 ql_tail_insert(&head, f, link); in TEST_BEGIN()
186 ql_before_insert(&head, f, b, link); in TEST_BEGIN()
187 ql_before_insert(&head, f, c, link); in TEST_BEGIN()
188 ql_after_insert(f, h, link); in TEST_BEGIN()
189 ql_after_insert(f, g, link); in TEST_BEGIN()
192 ql_before_insert(&head, f, e, link); in TEST_BEGIN()
/redis-3.2.3/tests/integration/
H A Dconvert-zipmap-hash-on-load.tcl4 exec cp -f tests/assets/hash-zipmap.rdb $server_path
15 exec cp -f tests/assets/hash-zipmap.rdb $server_path
26 exec cp -f tests/assets/hash-zipmap.rdb $server_path
/redis-3.2.3/deps/jemalloc/test/include/test/
H A Dmath.h21 double f, z; in ln_gamma() local
26 f = 1.0; in ln_gamma()
29 f *= z; in ln_gamma()
33 f = -log(f); in ln_gamma()
35 f = 0.0; in ln_gamma()
39 return (f + (x-0.5) * log(x) - x + 0.918938533204673 + in ln_gamma()

123