/illumos-gate/usr/src/lib/libcrypt/common/ |
H A D | des_decrypt.c | 39 int t, j, k; in _des_decrypt1() local 76 t = 6*j; in _des_decrypt1() 77 k = S[j][(preS[t+0]<<5)+ in _des_decrypt1() 78 (preS[t+1]<<3)+ in _des_decrypt1() 79 (preS[t+2]<<2)+ in _des_decrypt1() 80 (preS[t+3]<<1)+ in _des_decrypt1() 81 (preS[t+4]<<0)+ in _des_decrypt1() 82 (preS[t+5]<<4)]; in _des_decrypt1() 83 t = 4*j; in _des_decrypt1() 84 f[t+0] = (k>>3)&01; in _des_decrypt1() [all …]
|
H A D | des_encrypt.c | 39 int t, j, k; in des_encrypt1() local 75 t = 6*j; in des_encrypt1() 76 k = S[j][(preS[t+0]<<5)+ in des_encrypt1() 77 (preS[t+1]<<3)+ in des_encrypt1() 78 (preS[t+2]<<2)+ in des_encrypt1() 79 (preS[t+3]<<1)+ in des_encrypt1() 80 (preS[t+4]<<0)+ in des_encrypt1() 81 (preS[t+5]<<4)]; in des_encrypt1() 82 t = 4*j; in des_encrypt1() 83 f[t+0] = (k>>3)&01; in des_encrypt1() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | fmtident.c | 38 register char* t; in fmtident() local 65 for (t = s; isprint(*t) && *t != '\n'; t++) in fmtident() 66 if (i && t[0] == ' ' && t[1] == '$') in fmtident() 68 while (t > s && isspace(t[-1])) in fmtident() 69 t--; in fmtident() 70 i = t - s; in fmtident()
|
H A D | fmtclock.c | 32 fmtclock(register Sfulong_t t) in fmtclock() argument 49 if (t == 0) in fmtclock() 51 if (t == ((Sfulong_t)~0)) in fmtclock() 53 t = (t * 1000000) / clk_tck; in fmtclock() 54 if (t < 1000) in fmtclock() 56 else if ((t /= 1000) < 1000) in fmtclock() 59 return fmtelapsed(t / 10, 100); in fmtclock() 61 sfsprintf(buf, z, "%I*u%cs", sizeof(t), t, u); in fmtclock()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cpc.c | 90 kthread_t *t; in cpc() local 110 if ((t = idtot(curproc, lwpid)) == NULL || t == curthread) in cpc() 112 ASSERT(t->t_tid == lwpid && ttolwp(t) != NULL); in cpc() 114 t = curthread; in cpc() 116 if (t->t_cpc_set == NULL && (cmd == CPC_SAMPLE || cmd == CPC_RELE)) in cpc() 142 if (t->t_cpc_set != NULL) in cpc() 143 (void) kcpc_unbind(t->t_cpc_set); in cpc() 144 ASSERT(t->t_cpc_set == NULL); in cpc() 146 if ((error = kcpc_copyin_set(&t->t_cpc_set, udata1, in cpc() 152 if ((error = kcpc_verify_set(t->t_cpc_set)) != 0) { in cpc() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tree.c | 88 const char *p, *t; in print_mdoc() local 98 t = p = NULL; in print_mdoc() 102 t = "root"; in print_mdoc() 105 t = "block"; in print_mdoc() 108 t = "head"; in print_mdoc() 112 t = "body-end"; in print_mdoc() 114 t = "body"; in print_mdoc() 117 t = "tail"; in print_mdoc() 120 t = "elem"; in print_mdoc() 123 t = "text"; in print_mdoc() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | tree.c | 172 nodesize(enum nodetype t, struct node *ret) in nodesize() argument 176 switch (t) { in nodesize() 229 newnode(enum nodetype t, const char *file, int line) in newnode() argument 232 int size = nodesize(t, ret); in newnode() 237 ret->t = t; in newnode() 251 switch (root->t) { in tree_free() 329 root->t); in tree_free() 332 alloc_xfree((char *)root, nodesize(root->t, root)); in tree_free() 336 tree_treecmp(struct node *np1, struct node *np2, enum nodetype t, in tree_treecmp() argument 342 if (np1->t != np2->t) in tree_treecmp() [all …]
|
/illumos-gate/usr/src/lib/libm/common/LD/ |
H A D | tanhl.c | 71 long double t, y, z; in tanhl() local 80 t = fabsl(x); in tanhl() 82 if (t <= threshold) { in tanhl() 83 if (t > one) in tanhl() 84 z = one - two / (expm1l(t + t) + two); in tanhl() 85 else if (t > small) { in tanhl() 86 y = expm1l(-t - t); in tanhl() 90 dummy = t + big; in tanhl() 95 } else if (!finitel(t)) in tanhl()
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | tanhl.c | 71 long double t, y, z; in tanhl() local 80 t = fabsl(x); in tanhl() 82 if (t <= threshold) { in tanhl() 83 if (t > one) in tanhl() 84 z = one - two / (expm1l(t + t) + two); in tanhl() 85 else if (t > small) { in tanhl() 86 y = expm1l(-t - t); in tanhl() 90 dummy = t + big; in tanhl() 95 } else if (!finitel(t)) in tanhl()
|
H A D | floorl.c | 48 long double t; in ceill() local 52 t = rintl(x); in ceill() 53 if (t >= x) /* already ceil(x) */ in ceill() 54 return (t); in ceill() 56 return (copysignl(t + qone, x)); in ceill() 61 long double t; in floorl() local 65 t = rintl(x); in floorl() 66 if (t <= x) in floorl() 67 return (t); /* already floor(x) */ in floorl() 69 return (copysignl(t - qone, x)); in floorl()
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | tanh.c | 72 double t, y, z; in tanh() local 79 t = fabs(x); in tanh() 81 if (t <= 22.0) { in tanh() 82 if (t > one) in tanh() 83 z = one - two / (expm1(t + t) + two); in tanh() 84 else if (t > small) { in tanh() 85 y = expm1(-t - t); in tanh() 89 dummy = t + big; in tanh() 95 } else if (!finite(t)) in tanh()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmword.c | 44 tmword(register const char* s, char** e, register const char* t, char** suf, int n) in tmword() argument 49 if (*s && *t) in tmword() 56 if (!isalpha(c) || c != *t && (islower(c) ? toupper(c) : tolower(c)) != *t) in tmword() 58 t++; in tmword() 70 if (!*t && s > (b + 1)) in tmword() 73 while (n-- && (t = *suf++)) in tmword() 76 while (isalpha(c = *s++) && (c == *t || (islower(c) ? toupper(c) : tolower(c)) == *t)) t++; in tmword() 77 if (!*t && !isalpha(c)) in tmword()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | disp_lock.c | 116 thread_lock(kthread_id_t t) in thread_lock() argument 124 lock_t *volatile *tlpp = &t->t_lockp; in thread_lock() 161 thread_lock_high(kthread_id_t t) in thread_lock_high() argument 167 lock_t *volatile *tlpp = &t->t_lockp; in thread_lock_high() 192 thread_transition(kthread_id_t t) in thread_transition() argument 196 ASSERT(THREAD_LOCK_HELD(t)); in thread_transition() 197 ASSERT(t->t_lockp != &transition_lock); in thread_transition() 199 lp = t->t_lockp; in thread_transition() 200 t->t_lockp = &transition_lock; in thread_transition() 211 thread_stop(kthread_id_t t) in thread_stop() argument [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
H A D | lgamma.c | 179 struct Double t, u, v; in large_lgam() local 186 t.a = u.a*v.a; in large_lgam() 187 t.b = x*u.b + v.b*u.a; in large_lgam() 188 if (_IEEE == 0 && !finite(t.a)) in large_lgam() 190 return(t.a + t.b); in large_lgam() 202 t.a = v.a*u.a; /* t = (x-.5)*(log(x)-1) */ in large_lgam() 203 t.b = v.b*u.a + x*u.b; in large_lgam() 204 t.b += p; t.b += lns2pi; /* return t + lns2pi + p */ in large_lgam() 205 return (t.a + t.b); in large_lgam() 212 double y, z, t, r = 0, p, q, hi, lo; in small_lgam() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/ |
H A D | msggen.c | 136 register char* t; in translation() local 143 for (d = e = 0, t = s; *t; t++) in translation() 144 if (*t == ',') in translation() 146 e = t; in translation() 150 else if (isspace(*t)) in translation() 151 d = t; in translation() 212 register char* t; in main() local 384 for (t = s; *s && !isspace(*s); s++); in main() 387 if (streq(t, "delset")) in main() 396 else if (streq(t, "quote")) in main() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | tv | 62 #define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime) 63 #define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime) 64 #define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime) 66 #define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec) 67 #define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec) 68 #define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fflush.c | 94 register int n, t; local 99 t = fp->f_flags; 100 if ((t & SMWR) == 0) 103 if (t & SMSTR) 127 fp->f_w = t & (SMLBF|SMNBF) ? 0 : fp->f_bf.smb_size; /* implies SMFBF */ 129 for (; n > 0; n -= t, p += t) 134 t = (*fp->f_write)(fp, (char *)p, n); 135 if (t <= 0) 137 if (t == 0 && errno == 0) 140 if (IS_IO_ERROR(fd, t, *timeout)) [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfpkrd.c | 55 reg int ntry, t; local 61 t = (action > 0 || rc >= 0) ? (STREAM_PEEK|SOCKET_PEEK) : 0; 63 t &= ~STREAM_PEEK; 66 t &= ~SOCKET_PEEK; 73 if((t&STREAM_PEEK) && (ntry == 1 || tm < 0) ) 91 t &= ~STREAM_PEEK; 106 t &= ~STREAM_PEEK; 109 { t &= ~SOCKET_PEEK; 130 ((t&STREAM_PEEK) && rc >= 0) || 132 (t&SOCKET_PEEK) ) [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_hx.c | 61 register char *s, *t, *u; local 89 t = line + 1; 90 if (s - t > 0) { 92 if ((u = strchr(t, ',')) && (u < s)) { 97 if (*t == 'i') 99 else if (*t == 'o') 103 *ifn = t; 107 t = (char *)ip; 111 if (t < (char *)ip) 113 while (t < (char *)ip) { [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lwp_create.c | 70 kthread_t *t; in syslwp_create() local 132 t = lwptot(lwp); in syslwp_create() 136 if (new_lwp && copyout(&t->t_tid, new_lwp, sizeof (id_t))) { in syslwp_create() 142 t->t_proc_flag |= TP_EXITLWP; in syslwp_create() 143 t->t_sig_check = 1; in syslwp_create() 144 t->t_sysnum = 0; in syslwp_create() 145 t->t_proc_flag &= ~TP_HOLDLWP; in syslwp_create() 146 lwp_create_done(t); in syslwp_create() 156 lwp_createctx(curthread, t); in syslwp_create() 168 t->t_sysnum = SYS_lwp_create; in syslwp_create() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | optget.c | 389 register char* t; in show() local 396 t = buf; in show() 398 while (t < e) in show() 405 *t++ = '\\'; in show() 409 *t++ = '\\'; in show() 413 *t++ = '\\'; in show() 417 *t++ = '\\'; in show() 421 *t++ = '\\'; in show() 425 *t++ = '\\'; in show() 429 *t++ = c; in show() [all …]
|
H A D | mime.c | 147 char* t; in mimeset() local 169 for (t = v; *t && !isspace(*t) && *t != '='; t++); in mimeset() 170 for (k = t; isspace(*t); t++); in mimeset() 171 if (!*t || *t == '=' || *t == ';') in mimeset() 173 if (*t) in mimeset() 174 while (isspace(*++t)); in mimeset() 177 v = t; in mimeset() 186 for (t = v; *t; t++) in mimeset() 187 if (*t == '\\') in mimeset() 189 switch (*(t + 1)) in mimeset() [all …]
|
/illumos-gate/usr/src/boot/libsa/string/ |
H A D | memset.c | 66 size_t t; in bzero() local 106 if ((t = (long)dst & wmask) != 0) { in bzero() 107 t = wsize - t; in bzero() 108 length -= t; in bzero() 111 } while (--t != 0); in bzero() 115 t = length / wsize; in bzero() 119 } while (--t != 0); in bzero() 122 t = length & wmask; in bzero() 123 if (t != 0) in bzero() 126 } while (--t != 0); in bzero()
|
/illumos-gate/usr/src/uts/sun4u/ngdr/sys/ |
H A D | dr.h | 52 #define NIX(t) \ argument 53 (((t) == SBD_COMP_CPU) ? 0 : \ 54 ((t) == SBD_COMP_MEM) ? 1 : \ 55 ((t) == SBD_COMP_IO) ? 2 : \ 56 ((t) == SBD_COMP_CMP) ? 0 : DR_MAXNUM_NT) 58 #define BIX(t) \ argument 59 (((t) == SBD_COMP_CPU) ? 0 : \ 60 ((t) == SBD_COMP_MEM) ? 32 : \ 61 ((t) == SBD_COMP_IO) ? 40 : \ 62 ((t) == SBD_COMP_CMP) ? 0 : 0) [all …]
|
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | dr.h | 82 #define DEVSET_NIX(t) \ argument 83 (((t) == SBD_COMP_CPU) ? 0 : \ 84 ((t) == SBD_COMP_MEM) ? 1 : \ 85 ((t) == SBD_COMP_IO) ? 2 : \ 86 ((t) == SBD_COMP_CMP) ? 0 : DR_MAXNUM_NT) 105 #define DEVSET_BIX(t) \ argument 106 (((t) == SBD_COMP_CPU) ? DEVSET_CPU_OFFSET : \ 107 ((t) == SBD_COMP_MEM) ? DEVSET_MEM_OFFSET : \ 108 ((t) == SBD_COMP_IO) ? DEVSET_IO_OFFSET : \ 109 ((t) == SBD_COMP_CMP) ? DEVSET_CPU_OFFSET : 0) [all …]
|