/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathkey.c | 58 register char* k; in pathkey_20100601() local 81 k = key; in pathkey_20100601() 83 *k++ = let[n & 0xf]; in pathkey_20100601() 84 *k = 0; in pathkey_20100601() 122 if (k = getenv(PR_BASE)) in pathkey_20100601() 124 if (s = strrchr(k, '/')) in pathkey_20100601() 125 k = s + 1; in pathkey_20100601() 126 n = memsum(k, strlen(k), n); in pathkey_20100601() 131 if ((k = getenv("VIRTUAL_ROOT")) && *k == '/') in pathkey_20100601() 133 n = memsum(k, strlen(k), n); in pathkey_20100601() [all …]
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | elm.c | 135 struct key *kprev, *k; in el_init() local 156 k = (struct key *)xmalloc(sizeof (struct key)); in el_init() 157 k->time = LB; in el_init() 158 k->numnote = 1; in el_init() 159 k->notice = n; in el_init() 160 k->left = NULL; in el_init() 161 kprev = k; in el_init() 163 n->key = k; in el_init() 176 k = (struct key *)xmalloc(sizeof (struct key)); in el_init() 177 k->time = t; in el_init() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | sched.c | 85 el_key_t *fk, *k; in il_shift() local 89 k = il[icurr]; in il_shift() 90 while (k->time < t) { in il_shift() 91 fk = k; in il_shift() 92 fn = k->notice; in il_shift() 100 k = il[(icurr + DU - 1) % DU]; in il_shift() 101 if (k->time < INFINITY - DT) { in il_shift() 102 nt = k->time + DT; /* next key time */ in il_shift() 106 while (k->time < nt) { in il_shift() 107 k = k->right; in il_shift() [all …]
|
/illumos-gate/usr/src/common/crypto/aes/amd64/ |
H A D | aeskey.c | 81 #define ke4(k, i) \ argument 82 { k[4 * (i) + 4] = ss[0] ^= ls_box(ss[3], 3) ^ t_use(r, c)[i]; \ 83 k[4 * (i) + 5] = ss[1] ^= ss[0]; \ 84 k[4 * (i) + 6] = ss[2] ^= ss[1]; \ 85 k[4 * (i) + 7] = ss[3] ^= ss[2]; \ 115 #define kef6(k, i) \ argument 116 { k[6 * (i) + 6] = ss[0] ^= ls_box(ss[5], 3) ^ t_use(r, c)[i]; \ 117 k[6 * (i) + 7] = ss[1] ^= ss[0]; \ 118 k[6 * (i) + 8] = ss[2] ^= ss[1]; \ 119 k[6 * (i) + 9] = ss[3] ^= ss[2]; \ [all …]
|
/illumos-gate/usr/src/uts/common/io/bpf/ |
H A D | bpf_filter.c | 55 #define MINDEX(len, m, k) \ argument 58 while (k >= len) { \ 59 k -= len; \ 71 m_xword(mblk_t *m, uint32_t k, int *err) in m_xword() argument 78 MINDEX(len, m, k); in m_xword() 79 cp = mtod(m, uchar_t *) + k; in m_xword() 80 if (len >= k + 4) { in m_xword() 85 if (m0 == 0 || M_LEN(m0) + len - k < 4) { in m_xword() 86 DTRACE_PROBE3(mblk_xword_fail, mblk_t *, m0, int, len, int, k); in m_xword() 91 switch (len - k) { in m_xword() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/cwchash/ |
H A D | tester.c | 35 struct key *k = (struct key *)ky; in hashfromkey() local 36 return (((k->one_ip << 17) | (k->one_ip >> 15)) ^ k->two_ip) + in hashfromkey() 37 (k->one_port * 17) + (k->two_port * 13 * 29); in hashfromkey() 50 struct key *k, *kk; in main() local 64 k = (struct key *)malloc(sizeof(struct key)); in main() 65 if (NULL == k) { in main() 69 k->one_ip = 0xcfccee40 + i; in main() 70 k->two_ip = 0xcf0cee67 - (5 * i); in main() 71 k->one_port = 22 + (7 * i); in main() 72 k->two_port = 5522 - (3 * i); in main() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softObject.h | 397 #define KEY_PUB_RSA(k) \ argument 398 &((k)->key_type_u.rsa_pub_key) 401 #define KEY_PUB_RSA_MOD(k) \ argument 402 &((k)->key_type_u.rsa_pub_key.modulus) 405 #define KEY_PUB_RSA_PUBEXPO(k) \ argument 406 &((k)->key_type_u.rsa_pub_key.pub_exponent) 409 #define KEY_PUB_RSA_MOD_BITS(k) \ argument 410 ((k)->key_type_u.rsa_pub_key.modulus_bits) 415 #define KEY_PUB_DSA(k) \ argument 416 &((k)->key_type_u.dsa_pub_key) [all …]
|
/illumos-gate/usr/src/lib/libm/common/R/ |
H A D | rintf.c | 69 int hx, k; in aintf() local 73 k = (hx & ~0x80000000) >> 23; in aintf() 74 if (k < 150) { in aintf() 80 return (((k - 127) & hx) < 0 ? -y : y); in aintf() 89 int hx, k, j, ix; in anintf() local 93 k = ix >> 23; in anintf() 94 if (((k - 127) ^ (k - 150)) < 0) { in anintf() 95 j = 1 << (149 - k); in anintf() 96 k = j + j - 1; in anintf() 97 if ((k & hx) != 0) in anintf() [all …]
|
H A D | floorf.c | 60 int hx, k, j, ix; in ceilf() local 64 k = ix >> 23; in ceilf() 65 if (((k - 127) ^ (k - 150)) < 0) { in ceilf() 66 k = (1 << (150 - k)) - 1; in ceilf() 67 if ((k & hx) != 0) in ceilf() 69 j = k & (~(hx >> 31)); in ceilf() 70 *(int *) &x = (hx + j) & ~k; in ceilf() 72 } else if (k <= 126) { in ceilf() 88 int hx, k, j, ix; in floorf() local 92 k = ix >> 23; in floorf() [all …]
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | scalbnl.c | 37 #define XSET_EXP(k, x) ((int *) &x)[0] = (((int *) &x)[0] & ~0x7fff0000) | \ argument 38 (k << 16) 39 #define ISINFNANL(k, x) (k == 0x7fff) argument 45 #define XSET_EXP(k, x) ((int *) &x)[2] = (((int *) &x)[2] & ~0x7fff) | k argument 47 #define ISINFNANL(k, x) (k == 0x7fff || k != 0 && \ argument 50 #define ISINFNANL(k, x) (k == 0x7fff) argument 59 int k = XBIASED_EXP(x); in scalbnl() local 61 if (ISINFNANL(k, x)) in scalbnl() 65 if (k == 0) { in scalbnl() 67 k = XBIASED_EXP(x) - XTWOT_OFFSET; in scalbnl() [all …]
|
H A D | ilogbl.c | 36 #define ISNORMALL(k, x) (k != 0x7fff) /* assuming k != 0 */ argument 37 #define X86PDNRM(k, x) argument 45 #define X86PDNRM(k, x) if (k == 0 && (((int *) &x)[1] & 0x80000000) != 0) \ argument 46 ((int *) &x)[2] |= k = 1 48 #define ISNORMALL(k, x) (k != 0x7fff && (((int *) &x)[1] & 0x80000000) != 0) argument 50 #define ISNORMALL(k, x) (k != 0x7fff) argument 71 int k = XBIASED_EXP(x); in ilogbl() local 73 X86PDNRM(k, x); in ilogbl() 74 if (k == 0) { in ilogbl() 81 } else if (ISNORMALL(k, x)) in ilogbl() [all …]
|
H A D | logbl.c | 37 #define ISNORMALL(k, x) (k != 0x7fff) /* assuming k != 0 */ argument 38 #define X86PDNRM(k, x) argument 46 #define X86PDNRM(k, x) if (k == 0 && (((int *) &x)[1] & 0x80000000) != 0) \ argument 47 ((int *) &x)[2] |= k = 1 49 #define ISNORMALL(k, x) (k != 0x7fff && (((int *) &x)[1] & 0x80000000) != 0) argument 51 #define ISNORMALL(k, x) (k != 0x7fff) argument 66 int k = XBIASED_EXP(x); in logbl() local 68 X86PDNRM(k, x); in logbl() 69 if (k == 0) { in logbl() 77 } else if (ISNORMALL(k, x)) in logbl() [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | scalblnl.c | 36 #define XSET_EXP(k, x) ((int *) &x)[0] = (((int *) &x)[0] & ~0x7fff0000) | \ argument 37 (k << 16) 38 #define ISINFNANL(k, x) (k == 0x7fff) argument 44 #define XSET_EXP(k, x) ((int *) &x)[2] = (((int *) &x)[2] & ~0x7fff) | k argument 46 #define ISINFNANL(k, x) (k == 0x7fff || \ argument 47 (k != 0 && (((int *) &x)[1] & 0x80000000) == 0)) 49 #define ISINFNANL(k, x) (k == 0x7fff) argument 58 int k = XBIASED_EXP(x); in scalblnl() local 60 if (ISINFNANL(k, x)) in scalblnl() 64 if (k == 0) { in scalblnl() [all …]
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | crc32.c | 101 local z_crc_t x2nmodp OF((z_off64_t n, unsigned k)); 309 int k, n; in make_crc_table() local 368 for (k = 0; k < 8; k++) { in make_crc_table() 370 write_table(out, ltl[k], 256); in make_crc_table() 371 fprintf(out, "}%s", k < 7 ? ",\n" : ""); in make_crc_table() 377 for (k = 0; k < 8; k++) { in make_crc_table() 379 write_table64(out, big[k], 256); in make_crc_table() 380 fprintf(out, "}%s", k < 7 ? ",\n" : ""); in make_crc_table() 394 for (k = 0; k < 4; k++) { in make_crc_table() 396 write_table(out, ltl[k], 256); in make_crc_table() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
H A D | crypt.c | 490 register int i, j, k, l; in init_perm() local 492 for (k = 0; k < chars_out*8; k++) { /* each output bit position */ in init_perm() 493 l = p[k] - 1; /* where this bit comes from */ in init_perm() 500 perm[i][j].b[k>>3] |= 1<<(k&07); in init_perm() 511 register long k; in init_des() local 527 if ((k = PC2[i]) == 0) in init_des() 529 k += Rotates[0]-1; in init_des() 530 if ((k%28) < Rotates[0]) k -= 28; in init_des() 531 k = PC1[k]; in init_des() 532 if (k > 0) { in init_des() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelObject.h | 268 #define KEY_PUB_RSA(k) \ argument 269 &((k)->key_type_u.rsa_pub_key) 272 #define KEY_PUB_RSA_MOD(k) \ argument 273 &((k)->key_type_u.rsa_pub_key.modulus) 276 #define KEY_PUB_RSA_PUBEXPO(k) \ argument 277 &((k)->key_type_u.rsa_pub_key.pub_exponent) 280 #define KEY_PUB_RSA_MOD_BITS(k) \ argument 281 ((k)->key_type_u.rsa_pub_key.modulus_bits) 287 #define KEY_PUB_DSA(k) \ argument 288 &((k)->key_type_u.dsa_pub_key) [all …]
|
/illumos-gate/usr/src/cmd/troff/troff.d/ |
H A D | t6.c | 70 int i, k; local 77 k = absmot(j); 79 k = -k; 80 return(k); 102 k = widcache[i-32].width; 104 k = getcw(i-32); 106 k += (bd - 1) * HOR; 108 k = cs; 110 widthp = k; 111 return(k); [all …]
|
/illumos-gate/usr/src/cmd/troff/nroff.d/ |
H A D | n6.c | 60 int i, k; local 67 k = absmot(j); 69 k = -k; 70 return(k); 90 k = t.Char * csi_width[cs(j)]; 93 k = 0; 96 widthp = k; 97 return(k); 106 k = t.width[i] * t.Char; 107 widthp = k; [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | table.c | 907 struct khash *k, **pk; in kern_find() local 909 for (pk = &KHASH(dst, mask); (k = *pk) != NULL; pk = &k->k_next) { in kern_find() 910 if (k->k_dst == dst && k->k_mask == mask && in kern_find() 911 (gate == 0 || k->k_gate == gate) && in kern_find() 912 (ifp == NULL || k->k_ifp == ifp)) { in kern_find() 918 return (k); in kern_find() 930 struct khash *k, **pk; in kern_alternate() local 932 for (pk = &KHASH(dst, mask); (k = *pk) != NULL; pk = &k->k_next) { in kern_alternate() 933 if (k->k_dst == dst && k->k_mask == mask && in kern_alternate() 934 (k->k_gate != gate) && in kern_alternate() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.index.d | 80 end = j = k = 0; 87 command[i + k].str = command[j].str; 88 command[i + k].substr = command[j].substr; 89 command[i + k].haspos = 1; 90 command[i + k].position = -400; 91 k++; 93 command[i + k].str = command[j].str; 94 command[i + k].substr = command[j].substr; 95 command[i + k].haspos = 1; 96 command[i + k].position = -1; [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_func.c | 74 const u_int8_t *e, *k; local 78 k = key; 79 e = k + len; 80 for (h = 0; k != e;) { 81 c = *k++; 82 if (!c && k > e) 105 const u_int8_t *k; local 111 #define HASHC n = *k++ + 65599 * n 113 k = key; 159 const u_int8_t *k; local [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | nextafter.c | 37 int hx, hy, k; in nextafter() local 45 k = (hx & ~0x80000000) | lx; in nextafter() 51 if (k == 0) { /* x = 0 */ in nextafter() 52 k = hy & 0x80000000; in nextafter() 53 ((int *)&ans)[HIWORD] = k; in nextafter() 58 k = (lx == 0)? hx - 1 : hx; in nextafter() 59 ((int *)&ans)[HIWORD] = k; in nextafter() 62 k = (lx == 0xffffffff)? hx + 1 : hx; in nextafter() 63 ((int *)&ans)[HIWORD] = k; in nextafter() 68 k = (lx == 0)? hx - 1 : hx; in nextafter() [all …]
|
H A D | scalbn.c | 77 int *px, ix, hx, k; in scalbn() local 82 k = hx >> 20; in scalbn() 84 if (k == 0x7ff) /* x is inf or NaN */ in scalbn() 87 if (k == 0) { in scalbn() 93 k = ((ix & ~0x80000000) >> 20) - 52; in scalbn() 95 k = ilogb_biased((unsigned *)px); in scalbn() 99 k += n; in scalbn() 100 if (k > n) /* integer overflow occurred */ in scalbn() 101 k = -100; in scalbn() 104 k += n; in scalbn() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | where.c | 569 int k; in sqliteWhereBegin() local 570 for(k=0; k<pIdx->nColumn; k++){ in sqliteWhereBegin() 571 if( pIdx->aiColumn[k]==iColumn ){ in sqliteWhereBegin() 574 if( k==0 ) inMask |= 1; in sqliteWhereBegin() 578 eqMask |= 1<<k; in sqliteWhereBegin() 583 ltMask |= 1<<k; in sqliteWhereBegin() 588 gtMask |= 1<<k; in sqliteWhereBegin() 604 int k; in sqliteWhereBegin() local 605 for(k=0; k<pIdx->nColumn; k++){ in sqliteWhereBegin() 606 if( pIdx->aiColumn[k]==iColumn ){ in sqliteWhereBegin() [all …]
|
/illumos-gate/usr/src/lib/libm/common/LD/ |
H A D | logbl.c | 37 #define ISNORMALL(k, x) (k != 0x7fff) /* assuming k != 0 */ argument 38 #define X86PDNRM(k, x) argument 46 #define X86PDNRM(k, x) if (k == 0 && (((int *) &x)[1] & 0x80000000) != 0) \ argument 47 ((int *) &x)[2] |= k = 1 49 #define ISNORMALL(k, x) (k != 0x7fff && (((int *) &x)[1] & 0x80000000) != 0) argument 51 #define ISNORMALL(k, x) (k != 0x7fff) argument 66 int k = XBIASED_EXP(x); in logbl() local 68 X86PDNRM(k, x); in logbl() 69 if (k == 0) { in logbl() 77 } else if (ISNORMALL(k, x)) in logbl() [all …]
|