/l4re-core-master/lua/lib/contrib/src/ |
A D | ltable.c | 75 #define hashpow2(t,n) (gnode(t, lmod((n), sizenode(t)))) argument 81 #define hashmod(t,n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) argument 84 #define hashstr(t,str) hashpow2(t, (str)->hash) argument 85 #define hashboolean(t,p) hashpow2(t, p) argument 87 #define hashint(t,i) hashpow2(t, i) argument 90 #define hashpointer(t,p) hashmod(t, point2uint(p)) argument 235 #define limitequalsasize(t) (isrealasize(t) || ispow2((t)->alimit)) argument 268 return (!isrealasize(t) || ispow2(t->alimit)); in ispow2realasize() 273 t->alimit = luaH_realasize(t); in setlimittosize() 279 #define limitasasize(t) check_exp(isrealasize(t), t->alimit) argument [all …]
|
A D | ltable.h | 13 #define gnode(t,i) (&(t)->node[i]) argument 23 #define invalidateTMcache(t) ((t)->flags &= ~maskflags) argument 27 #define isdummy(t) ((t)->lastfree == NULL) argument 31 #define allocsizenode(t) (isdummy(t) ? 0 : sizenode(t)) argument 38 LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); 42 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 54 LUAI_FUNC void luaH_free (lua_State *L, Table *t); 55 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 56 LUAI_FUNC lua_Unsigned luaH_getn (Table *t); 57 LUAI_FUNC unsigned int luaH_realasize (const Table *t); [all …]
|
A D | lmem.h | 44 #define luaM_limitN(n,t) \ argument 46 cast_uint((MAX_SIZET/sizeof(t)))) 59 #define luaM_new(L,t) cast(t*, luaM_malloc_(L, sizeof(t), 0)) argument 60 #define luaM_newvector(L,n,t) cast(t*, luaM_malloc_(L, (n)*sizeof(t), 0)) argument 61 #define luaM_newvectorchecked(L,n,t) \ argument 62 (luaM_checksize(L,n,sizeof(t)), luaM_newvector(L,n,t)) 67 ((v)=cast(t *, luaM_growaux_(L,v,nelems,&(size),sizeof(t), \ 70 #define luaM_reallocvector(L, v,oldn,n,t) \ argument 71 (cast(t *, luaM_realloc_(L, v, cast_sizet(oldn) * sizeof(t), \ 74 #define luaM_shrinkvector(L,v,size,fs,t) \ argument [all …]
|
A D | loslib.c | 68 #define l_pushtime(L,t) lua_pushinteger(L,(lua_Integer)(t)) argument 74 #define l_pushtime(L,t) lua_pushnumber(L,(lua_Number)(t)) argument 88 #define l_gmtime(t,r) gmtime_r(t,r) argument 89 #define l_localtime(t,r) localtime_r(t,r) argument 94 #define l_gmtime(t,r) ((void)(r)->tm_sec, gmtime(t)) argument 95 #define l_localtime(t,r) ((void)(r)->tm_sec, localtime(t)) argument 295 luaL_argcheck(L, (time_t)t == t, arg, "time out-of-bounds"); in l_checktime() 296 return (time_t)t; in l_checktime() 347 time_t t; in os_time() local 364 if (t != (time_t)(l_timet)t || t == (time_t)(-1)) in os_time() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libm/ |
A D | e_asin.c | 65 double t=0.0,w,p,q,c,r,s; in __ieee754_asin() local 80 t = x*x; in __ieee754_asin() 81 p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); in __ieee754_asin() 82 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asin() 89 t = w*0.5; in __ieee754_asin() 90 p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); in __ieee754_asin() 91 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asin() 92 s = __ieee754_sqrt(t); in __ieee754_asin() 99 c = (t-w*w)/(s+w); in __ieee754_asin() 103 t = pio4_hi-(p-q); in __ieee754_asin() [all …]
|
A D | s_cbrt.c | 32 double r,s,t=0.0,w; in cbrt() local 48 t*=x; GET_HIGH_WORD(high,t); SET_HIGH_WORD(t,high/3+B2); in cbrt() 55 r=t*t/x; in cbrt() 56 s=C+r*t; in cbrt() 57 t*=G+F/(s+E+D/s); in cbrt() 60 GET_HIGH_WORD(high,t); in cbrt() 65 s=t*t; /* t*t is exact */ in cbrt() 67 w=t+t; in cbrt() 69 t=t+t*r; in cbrt() 72 GET_HIGH_WORD(high,t); in cbrt() [all …]
|
A D | e_sinh.c | 37 double t,w,h; in __ieee754_sinh() local 54 t = expm1(fabs(x)); in __ieee754_sinh() 55 if(ix<0x3ff00000) return h*(2.0*t-t*t/(t+one)); in __ieee754_sinh() 56 return h*(t+t/(t+one)); in __ieee754_sinh() 66 t = h*w; in __ieee754_sinh() 67 return t*w; in __ieee754_sinh()
|
A D | s_expm1.c | 127 double y,hi,lo,c=0.0,t,e,hxs,hfx,r1; in expm1() local 163 t = k; in expm1() 164 hi = x - t*ln2_hi; /* t*ln2_hi is exact here */ in expm1() 165 lo = t*ln2_lo; in expm1() 172 return x - (t-(huge+x)); in expm1() 180 t = 3.0-r1*hfx; in expm1() 181 e = hxs*((r1-t)/(6.0 - x*t)); in expm1() 198 t = one; in expm1() 202 y = t-(e-x); in expm1() 207 SET_HIGH_WORD(t,((0x3ff-k)<<20)); /* 2^-k */ in expm1() [all …]
|
A D | e_cosh.c | 40 double t,w; in __ieee754_cosh() local 53 t = expm1(fabs(x)); in __ieee754_cosh() 54 w = one+t; in __ieee754_cosh() 56 return one+(t*t)/(w+w); in __ieee754_cosh() 61 t = __ieee754_exp(fabs(x)); in __ieee754_cosh() 62 return half*t+half/t; in __ieee754_cosh() 73 t = half*w; in __ieee754_cosh() 74 return t*w; in __ieee754_cosh()
|
A D | e_pow.c | 191 w = (t*t)*(0.5-t*(0.3333333333333333333333-t*0.25)); in __ieee754_pow() 193 v = t*ivln2_l-w*ivln2; in __ieee754_pow() 241 t = (double)n; in __ieee754_pow() 280 t = zero; in __ieee754_pow() 284 p_h -= t; in __ieee754_pow() 286 t = p_l+p_h; in __ieee754_pow() 287 SET_LOW_WORD(t,0); in __ieee754_pow() 288 u = t*lg2_h; in __ieee754_pow() 289 v = (p_l-(t-p_h))*lg2+t*lg2_l; in __ieee754_pow() 292 t = z*z; in __ieee754_pow() [all …]
|
A D | e_acosh.c | 35 double t; in __ieee754_acosh() local 49 t=x*x; in __ieee754_acosh() 50 return __ieee754_log(2.0*x-one/(x+__ieee754_sqrt(t-one))); in __ieee754_acosh() 52 t = x-one; in __ieee754_acosh() 53 return log1p(t+sqrt(2.0*t+t*t)); in __ieee754_acosh()
|
A D | e_atanh.c | 39 double t; in __ieee754_atanh() local 51 t = x+x; in __ieee754_atanh() 52 t = 0.5*log1p(t+t*x/(one-x)); in __ieee754_atanh() 54 t = 0.5*log1p((x+x)/(one-x)); in __ieee754_atanh() 55 if(hx>=0) return t; else return -t; in __ieee754_atanh()
|
/l4re-core-master/l4util/lib/src/ |
A D | llulc.cc | 86 void enqueue(l4ullulock_t *t) in enqueue() argument 88 Lock *r = get_dummy(t); in enqueue() 107 { t->blocklistroot = (void *)get_dummy(t)->_next; } in shift() 193 t->cap_free(c.cap()); in create_new_thread_lock() 228 *t = _t; in l4ullulock_init() 234 Lock::free_list(t); in l4ullulock_deinit() 235 t->mem_free(t); in l4ullulock_deinit() 254 tl->enqueue(t); in l4ullulock_lock() 276 add_atomic(&t->lock, -1); in l4ullulock_unlock() 278 if (t->block_cnt > 0) in l4ullulock_unlock() [all …]
|
/l4re-core-master/l4sys/include/ |
A D | types.h | 420 long l4_msgtag_label(l4_msgtag_t t) L4_NOTHROW in l4_msgtag_label() argument 421 { return t.raw >> 16; } in l4_msgtag_label() 424 unsigned l4_msgtag_words(l4_msgtag_t t) L4_NOTHROW in l4_msgtag_words() argument 425 { return t.raw & 0x3f; } in l4_msgtag_words() 428 unsigned l4_msgtag_items(l4_msgtag_t t) L4_NOTHROW in l4_msgtag_items() argument 429 { return (t.raw >> 6) & 0x3f; } in l4_msgtag_items() 432 unsigned l4_msgtag_flags(l4_msgtag_t t) L4_NOTHROW in l4_msgtag_flags() argument 433 { return t.raw & 0xf000; } in l4_msgtag_flags() 438 { return t.raw & L4_MSGTAG_ERROR; } in l4_msgtag_has_error() 452 { return l4_msgtag_label(t) == L4_PROTO_EXCEPTION; } in l4_msgtag_is_exception() [all …]
|
A D | __timeout.h | 190 l4_timeout_t t; in l4_ipc_timeout() local 191 t.p.snd.t = (snd_man & 0x3ff) | ((snd_exp << 10) & 0x7c00); in l4_ipc_timeout() 192 t.p.rcv.t = (rcv_man & 0x3ff) | ((rcv_exp << 10) & 0x7c00); in l4_ipc_timeout() 193 return t; in l4_ipc_timeout() 200 l4_timeout_t t; in l4_timeout() local 201 t.p.snd = snd; in l4_timeout() 202 t.p.rcv = rcv; in l4_timeout() 203 return t; in l4_timeout() 231 if (to.t == 0) in l4_timeout_rel_get() 233 return (l4_kernel_clock_t)(to.t & 0x3ff) << ((to.t >> 10) & 0x1f); in l4_timeout_rel_get() [all …]
|
/l4re-core-master/l4re_vfs/include/impl/ |
A D | vcon_stream_impl.h | 151 t->c_iflag = t->c_oflag = t->c_cflag = t->c_lflag = 0; in ioctl() 157 t->c_cc[VEOF] = CEOF; in ioctl() 160 t->c_cc[VERASE] = CERASE; in ioctl() 162 t->c_cc[VKILL] = CKILL; in ioctl() 164 t->c_cc[VINTR] = CINTR; in ioctl() 166 t->c_cc[VSUSP] = CSUSP; in ioctl() 167 t->c_cc[VSTART] = CSTART; in ioctl() 168 t->c_cc[VSTOP] = CSTOP; in ioctl() 169 t->c_cc[VLNEXT] = CLNEXT; in ioctl() 171 t->c_cc[VMIN] = CMIN; in ioctl() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/nptl/ |
A D | tst-cond7.c | 52 T *t = (T *) arg; in tf() local 54 if (pthread_mutex_lock (&t->lock) != 0) in tf() 62 if (pthread_cond_signal (&t->cond) != 0) in tf() 68 if (pthread_cond_wait (&t->cond, &t->lock) != 0) in tf() 89 T *t[N]; in do_test() local 94 t[i] = (T *) malloc (sizeof (T)); in do_test() 95 if (t[i] == NULL) in do_test() 116 if (pthread_create (&t[i]->h, NULL, tf, t[i]) != 0) in do_test() 123 if (pthread_cond_wait (&t[i]->cond, &t[i]->lock) != 0) in do_test() 137 if (pthread_cancel (t[i]->h) != 0) in do_test() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/mmap/ |
A D | mmap.c | 50 struct mmap_test *t; in main() local 53 t = tests + i; in main() 56 t->ret = mmap(t->args.start, t->args.length, t->args.prot, in main() 57 t->args.flags, t->args.fd, t->args.offset); in main() 59 if (t->err) { in main() 60 if (t->ret != MAP_FAILED) in main() 61 err("mmap test %i should have failed, but gave us %p", i, t->ret); in main() 62 else if (t->err != errno) in main() 63 errp("mmap test %i failed, but gave us wrong errno (got %i instead of %i)", i, errno, t->err); in main() 65 if (t->ret == MAP_FAILED) in main() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/bits/ |
A D | syscalls-common.h | 80 #define C_DECL_ARGS_1(t, v) t v argument 81 #define C_DECL_ARGS_2(t, v, args...) t v, C_DECL_ARGS_1(args) argument 82 #define C_DECL_ARGS_3(t, v, args...) t v, C_DECL_ARGS_2(args) argument 83 #define C_DECL_ARGS_4(t, v, args...) t v, C_DECL_ARGS_3(args) argument 84 #define C_DECL_ARGS_5(t, v, args...) t v, C_DECL_ARGS_4(args) argument 85 #define C_DECL_ARGS_6(t, v, args...) t v, C_DECL_ARGS_5(args) argument 88 #define C_ARGS_1(t, v) v argument 89 #define C_ARGS_2(t, v, args...) v, C_ARGS_1(args) argument 90 #define C_ARGS_3(t, v, args...) v, C_ARGS_2(args) argument 91 #define C_ARGS_4(t, v, args...) v, C_ARGS_3(args) argument [all …]
|
/l4re-core-master/sigma0/server/src/ |
A D | memmap.cc | 83 addr = Mem_man::ram()->alloc_first(1UL << size, t); in map_free_page() 188 new_client(t, answer); in handle_service_request() 234 t, answer); in handle_sigma0_request() 237 new_client(t, answer); in handle_sigma0_request() 257 l4_umword_t t; in pager() local 266 tag = l4_ipc_wait(utcb, &t, L4_IPC_NEVER); in pager() 274 t >>= 4; in pager() 284 << t << '\n'; in pager() 304 handle_page_fault(t, utcb, &answer); in pager() 307 handle_io_page_fault(t, utcb, &answer); in pager() [all …]
|
/l4re-core-master/uclibc/lib/libpthread/include/ |
A D | pthread-l4.h | 14 l4_cap_idx_t pthread_l4_cap(pthread_t t); 18 static inline l4_utcb_t *pthread_l4_utcb(pthread_t t); 29 inline ::L4::Cap< ::L4::Thread> cap(pthread_t t) in cap() argument 30 { return ::L4::Cap< ::L4::Thread>(pthread_l4_cap(t)); } in cap() 32 inline l4_utcb_t *utcb(pthread_t t) in utcb() argument 33 { return pthread_l4_utcb(t); } in utcb() 47 pthread_l4_utcb(pthread_t t) in pthread_l4_utcb() argument 48 { return (l4_utcb_t *) t; } in pthread_l4_utcb() 51 static inline l4_cap_idx_t pthread_getl4cap(pthread_t t) in pthread_getl4cap() argument 52 { return pthread_l4_cap(t); } in pthread_getl4cap()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/termios/ |
A D | cfmakeraw.c | 22 void cfmakeraw (struct termios *t) in cfmakeraw() argument 24 t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); in cfmakeraw() 25 t->c_oflag &= ~OPOST; in cfmakeraw() 26 t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); in cfmakeraw() 27 t->c_cflag &= ~(CSIZE|PARENB); in cfmakeraw() 28 t->c_cflag |= CS8; in cfmakeraw() 29 t->c_cc[VMIN] = 1; /* read returns when one char is available. */ in cfmakeraw() 30 t->c_cc[VTIME] = 0; in cfmakeraw()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/time/ |
A D | tst-mktime.c | 10 time_t t; in main() local 36 t = EVENING69; in main() 37 tm = localtime (&t); in main() 46 t = mktime (&time_str); in main() 47 if (t != EVENING69) in main() 50 (long) t, EVENING69); in main() 57 t = mktime (&time_str); in main() 59 if (t != EVENING69_CET) in main() 62 (long) t, (long) EVENING69_CET); in main()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/c6x/bits/ |
A D | syscalls.h | 145 #define C_DECL_ARGS_1(t, v) t v argument 146 #define C_DECL_ARGS_2(t, v, args...) t v, C_DECL_ARGS_1(args) argument 147 #define C_DECL_ARGS_3(t, v, args...) t v, C_DECL_ARGS_2(args) argument 148 #define C_DECL_ARGS_4(t, v, args...) t v, C_DECL_ARGS_3(args) argument 149 #define C_DECL_ARGS_5(t, v, args...) t v, C_DECL_ARGS_4(args) argument 150 #define C_DECL_ARGS_6(t, v, args...) t v, C_DECL_ARGS_5(args) argument 153 #define C_ARGS_1(t, v) v argument 154 #define C_ARGS_2(t, v, args...) v, C_ARGS_1(args) argument 155 #define C_ARGS_3(t, v, args...) v, C_ARGS_2(args) argument 156 #define C_ARGS_4(t, v, args...) v, C_ARGS_3(args) argument [all …]
|
/l4re-core-master/ned/server/src/ |
A D | lua_exec.cc | 58 App_task *t = task.p; in op_wait() local 63 t->observer(thread); in op_wait() 284 void set_task(App_task *t) { _task = t; } in set_task() argument 337 return *t; in check_at() 344 if (!t) in __task_state() 350 switch (t->state()) in __task_state() 375 if (!t) in __task_exit_code() 387 if (!t) in __task_wait() 396 t = 0; // zap task in __task_wait() 404 if (!t) in __task_kill() [all …]
|