| /src/contrib/mandoc/ |
| H A D | tbl.c | 37 tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_read() argument 48 if (tbl->part == TBL_PART_OPTS) { in tbl_read() 49 tbl->part = TBL_PART_LAYOUT; in tbl_read() 69 tbl_option(tbl, ln, p, &pos); in tbl_read() 77 switch (tbl->part) { in tbl_read() 79 tbl_layout(tbl, ln, p, pos); in tbl_read() 82 tbl_cdata(tbl, ln, p, pos); in tbl_read() 85 tbl_data(tbl, ln, p, pos); in tbl_read() 93 struct tbl_node *tbl; in tbl_alloc() local 95 tbl = mandoc_calloc(1, sizeof(*tbl)); in tbl_alloc() [all …]
|
| H A D | tbl_layout.c | 65 mods(struct tbl_node *tbl, struct tbl_cell *cp, in mods() argument 213 cell(struct tbl_node *tbl, struct tbl_row *rp, in cell() argument 261 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) in cell() 268 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell() 272 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_layout() argument 292 tbl->part = TBL_PART_DATA; in tbl_layout() 299 if (tbl->first_row == NULL) { in tbl_layout() 300 tbl->first_row = tbl->last_row = in tbl_layout() 303 if (tbl->first_row->first == NULL) { in tbl_layout() 306 cell_alloc(tbl, tbl->first_row, in tbl_layout() [all …]
|
| H A D | tbl_data.c | 43 getdata(struct tbl_node *tbl, struct tbl_span *dp, in getdata() argument 59 while (*ccp != '\0' && *ccp != tbl->opts.tab) in getdata() 168 tbl->part = TBL_PART_CDATA; in getdata() 197 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_cdata() argument 202 dat = tbl->last_span->last; in tbl_cdata() 206 if (tbl->opts.opts & TBL_OPT_NOSPACE) in tbl_cdata() 209 if (p[pos] == tbl->opts.tab) { in tbl_cdata() 210 tbl->part = TBL_PART_DATA; in tbl_cdata() 213 getdata(tbl, tbl->last_span, ln, p, &pos); in tbl_cdata() 216 tbl->part = TBL_PART_DATA; in tbl_cdata() [all …]
|
| H A D | out.c | 117 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first, in tblcalc() argument 149 assert(tbl->cols == NULL); in tblcalc() 150 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols, in tblcalc() 156 enw = (*tbl->len)(1, tbl->arg); in tblcalc() 169 tbl->cols[++maxcol].spacing = SIZE_MAX; in tblcalc() 170 col = tbl->cols + icol; in tblcalc() 188 width = tblcalc_data(tbl, in tblcalc() 228 col = tbl->cols + icol; in tblcalc() 250 width = tbl->cols[icol].width; in tblcalc() 252 width += (*tbl->len)(tbl->cols[icol].spacing, in tblcalc() [all …]
|
| /src/contrib/libucl/uthash/ |
| H A D | uthash.h | 81 #define uthash_noexpand_fyi(tbl) /* can be defined to log noexpand */ argument 84 #define uthash_expand_fyi(tbl) /* can be defined to log expands */ argument 93 #define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho))) argument 100 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \ 101 if (HASH_BLOOM_TEST((head)->hh.tbl, _hf_hashv)) { \ 102 HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], \ 111 #define HASH_BLOOM_MAKE(tbl) \ argument 113 (tbl)->bloom_nbits = HASH_BLOOM; \ 114 (tbl)->bloom_bv = (uint8_t*)uthash_malloc(HASH_BLOOM_BYTELEN); \ 115 if (!((tbl)->bloom_bv)) { uthash_fatal( "out of memory"); } \ [all …]
|
| /src/contrib/elftoolchain/common/ |
| H A D | uthash.h | 82 #define uthash_noexpand_fyi(tbl) /* can be defined to log noexpand */ argument 85 #define uthash_expand_fyi(tbl) /* can be defined to log expands */ argument 94 #define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho))) argument 101 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \ 102 if (HASH_BLOOM_TEST((head)->hh.tbl, _hf_hashv)) { \ 103 HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], \ 112 #define HASH_BLOOM_MAKE(tbl) \ argument 114 (tbl)->bloom_nbits = HASH_BLOOM; \ 115 (tbl)->bloom_bv = (uint8_t*)uthash_malloc(HASH_BLOOM_BYTELEN); \ 116 if (!((tbl)->bloom_bv)) { uthash_fatal( "out of memory"); } \ [all …]
|
| /src/crypto/openssl/crypto/aes/asm/ |
| H A D | aes-armv4.pl | 70 $tbl="r10"; 210 adr $tbl,AES_Te 212 sub $tbl,r3,#AES_encrypt-AES_Te @ Te 329 ldr $t1,[$tbl,$i1,lsl#2] @ Te3[s0>>0] 331 ldr $t2,[$tbl,$i2,lsl#2] @ Te2[s0>>8] 333 ldr $t3,[$tbl,$i3,lsl#2] @ Te1[s0>>16] 335 ldr $s0,[$tbl,$s0,lsl#2] @ Te0[s0>>24] 338 ldr $i1,[$tbl,$i1,lsl#2] @ Te1[s1>>16] 339 ldr $i2,[$tbl,$i2,lsl#2] @ Te3[s1>>0] 340 ldr $i3,[$tbl,$i3,lsl#2] @ Te2[s1>>8] [all …]
|
| H A D | aes-parisc.pl | 72 $tbl="%r28"; 104 blr %r0,$tbl 107 andcm $tbl,$t0,$tbl 108 ldo L\$AES_Te-L\$enc_pic($tbl),$tbl 216 ldwx,s $acc0($tbl),$acc0 218 ldwx,s $acc1($tbl),$acc1 220 ldwx,s $acc2($tbl),$acc2 222 ldwx,s $acc3($tbl),$acc3 224 ldwx,s $acc4($tbl),$acc4 226 ldwx,s $acc5($tbl),$acc5 [all …]
|
| H A D | aes-sparcv9.pl | 75 $tbl="%i4"; 226 ldx [$tbl+$acc0],$acc0 229 ldx [$tbl+$acc1],$acc1 232 ldx [$tbl+$acc2],$acc2 ! 235 ldx [$tbl+$acc3],$acc3 238 ldx [$tbl+$acc4],$acc4 242 ldx [$tbl+$acc5],$acc5 245 ldx [$tbl+$acc6],$acc6 248 ldx [$tbl+$acc7],$acc7 ! 251 ldx [$tbl+$acc8],$acc8 [all …]
|
| H A D | aes-586.pl | 213 $tbl="ebp"; 371 &mov ("ecx",&DWP(0,$tbl,$acc,8)); # 0 374 &mov ("edx",&DWP(3,$tbl,"edx",8)); # 1 378 &xor ("ecx",&DWP(2,$tbl,$acc,8)); # 10 381 &xor ("edx",&DWP(1,$tbl,$acc,8)); # 11 385 &xor ("ecx",&DWP(3,$tbl,$acc,8)); # 5 388 &xor ("ecx",&DWP(1,$tbl,$acc,8)); # 15 392 &mov ("ecx",&DWP(0,$tbl,$acc,8)); # 4 395 &xor ("ecx",&DWP(2,$tbl,$acc,8)); # 14 399 &xor ("ecx",&DWP(1,$tbl,$acc,8)); # 3 [all …]
|
| H A D | aes-s390x.pl | 121 $tbl="%r12"; 278 larl $tbl,AES_Te 323 l $s0,0($s0,$tbl) # Te0[s0>>24] 324 l $t1,1($t1,$tbl) # Te3[s0>>0] 325 l $t2,2($t2,$tbl) # Te2[s0>>8] 326 l $t3,3($t3,$tbl) # Te1[s0>>16] 328 x $s0,3($i1,$tbl) # Te1[s1>>16] 329 l $s1,0($s1,$tbl) # Te0[s1>>24] 330 x $t2,1($i2,$tbl) # Te3[s1>>0] 331 x $t3,2($i3,$tbl) # Te2[s1>>8] [all …]
|
| /src/sys/opencrypto/ |
| H A D | gfmult.c | 61 struct gf128 tbl[16]; in gf128_genmultable() local 64 tbl[0] = MAKE_GF128(0, 0); in gf128_genmultable() 65 tbl[1] = h; in gf128_genmultable() 68 tbl[i] = gf128_mulalpha(tbl[i / 2]); in gf128_genmultable() 69 tbl[i + 1] = gf128_add(tbl[i], h); in gf128_genmultable() 73 t->a[nib_rev[i]] = tbl[i].v[0] >> 32; in gf128_genmultable() 74 t->b[nib_rev[i]] = tbl[i].v[0]; in gf128_genmultable() 75 t->c[nib_rev[i]] = tbl[i].v[1] >> 32; in gf128_genmultable() 76 t->d[nib_rev[i]] = tbl[i].v[1]; in gf128_genmultable() 105 readrow(struct gf128table *tbl, unsigned bits) in readrow() argument [all …]
|
| /src/usr.bin/fortune/unstr/ |
| H A D | unstr.c | 68 static STRFILE tbl; /* description table */ in main() local 82 if (fread((char *)&tbl, sizeof(tbl), 1, Dataf) != 1) { in main() 88 tbl.str_version = be32toh(tbl.str_version); in main() 89 tbl.str_numstr = be32toh(tbl.str_numstr); in main() 90 tbl.str_longlen = be32toh(tbl.str_longlen); in main() 91 tbl.str_shortlen = be32toh(tbl.str_shortlen); in main() 92 tbl.str_flags = be32toh(tbl.str_flags); in main() 93 if (!(tbl.str_flags & (STR_ORDERED | STR_RANDOM))) in main() 95 Delimch = tbl.str_delim; in main() 96 order_unstr(&tbl); in main() [all …]
|
| /src/sys/crypto/openssl/aarch64/ |
| H A D | vpaes-armv8.S | 143 tbl v1.16b, {v20.16b}, v1.16b // vpshufb %xmm1, %xmm2, %xmm1 145 tbl v2.16b, {v21.16b}, v0.16b // vpshufb %xmm0, %xmm3, %xmm2 154 tbl v4.16b, {v25.16b}, v2.16b // vpshufb %xmm2, %xmm13, %xmm4 # 4 = sb1u 156 tbl v0.16b, {v24.16b}, v3.16b // vpshufb %xmm3, %xmm12, %xmm0 # 0 = sb1t 158 tbl v5.16b, {v27.16b}, v2.16b // vpshufb %xmm2, %xmm15, %xmm5 # 4 = sb2u 160 tbl v2.16b, {v26.16b}, v3.16b // vpshufb %xmm3, %xmm14, %xmm2 # 2 = sb2t 162 tbl v3.16b, {v0.16b}, v1.16b // vpshufb %xmm1, %xmm0, %xmm3 # 0 = B 164 tbl v0.16b, {v0.16b}, v4.16b // vpshufb %xmm4, %xmm0, %xmm0 # 3 = D 166 tbl v4.16b, {v3.16b}, v1.16b // vpshufb %xmm1, %xmm3, %xmm4 # 0 = 2B+C 176 tbl v5.16b, {v19.16b}, v1.16b // vpshufb %xmm1, %xmm11, %xmm5 # 2 = a/k [all …]
|
| /src/sbin/pfctl/ |
| H A D | pfctl_radix.c | 73 pfr_report_error(struct pfr_table *tbl, struct pfioc_table *io, in pfr_report_error() argument 87 err, tbl->pfrt_name); in pfr_report_error() 91 pfr_add_table(struct pfr_table *tbl, int *nadd, int flags) in pfr_add_table() argument 93 return (pfctl_add_table(pfh, tbl, nadd, flags)); in pfr_add_table() 97 pfr_del_table(struct pfr_table *tbl, int *ndel, int flags) in pfr_del_table() argument 99 return (pfctl_del_table(pfh, tbl, ndel, flags)); in pfr_del_table() 103 pfr_get_tables(struct pfr_table *filter, struct pfr_table *tbl, int *size, in pfr_get_tables() argument 108 if (size == NULL || *size < 0 || (*size && tbl == NULL)) { in pfr_get_tables() 116 io.pfrio_buffer = tbl; in pfr_get_tables() 117 io.pfrio_esize = sizeof(*tbl); in pfr_get_tables() [all …]
|
| /src/contrib/flex/src/ |
| H A D | tables.c | 59 static flex_int32_t yytbl_data_geti (const struct yytbl_data *tbl, int i); 343 static flex_int32_t yytbl_data_getijk (const struct yytbl_data *tbl, int i, 349 lo = tbl->td_lolen; 351 switch (YYTDFLAGS2BYTES (tbl->td_flags)) { 353 return ((flex_int8_t *) (tbl->td_data))[(i * lo + j) * (k + 1) + 356 return ((flex_int16_t *) (tbl->td_data))[(i * lo + j) * (k + 360 return ((flex_int32_t *) (tbl->td_data))[(i * lo + j) * (k + 379 static flex_int32_t yytbl_data_geti (const struct yytbl_data *tbl, int i) in yytbl_data_geti() argument 382 switch (YYTDFLAGS2BYTES (tbl->td_flags)) { in yytbl_data_geti() 384 return ((flex_int8_t *) (tbl->td_data))[i]; in yytbl_data_geti() [all …]
|
| H A D | gen.c | 107 struct yytbl_data *tbl; in mkeoltbl() local 109 tbl = calloc(1, sizeof (struct yytbl_data)); in mkeoltbl() 110 yytbl_data_init (tbl, YYTD_ID_RULE_CAN_MATCH_EOL); in mkeoltbl() 111 tbl->td_flags = YYTD_DATA8; in mkeoltbl() 112 tbl->td_lolen = (flex_uint32_t) (num_rules + 1); in mkeoltbl() 113 tbl->td_data = tdata = in mkeoltbl() 114 calloc(tbl->td_lolen, sizeof (flex_int8_t)); in mkeoltbl() 122 return tbl; in mkeoltbl() 207 struct yytbl_data *tbl = 0; in mkctbl() local 216 tbl = calloc(1, sizeof (struct yytbl_data)); in mkctbl() [all …]
|
| /src/lib/libc/string/ |
| H A D | strcspn.c | 45 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; in strcspn() local 52 tbl[0] = 1; in strcspn() 53 tbl[3] = tbl[2] = tbl[1] = 0; in strcspn() 55 for (tbl[0] = idx = 1; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strcspn() 56 tbl[idx] = 0; in strcspn() 61 tbl[idx] |= bit; in strcspn() 67 if ((tbl[idx] & bit) != 0) in strcspn()
|
| H A D | strspn.c | 45 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; in strspn() local 52 tbl[3] = tbl[2] = tbl[1] = tbl[0] = 0; in strspn() 54 for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strspn() 55 tbl[idx] = 0; in strspn() 60 tbl[idx] |= bit; in strspn() 66 if ((tbl[idx] & bit) == 0) in strspn()
|
| /src/sys/libkern/ |
| H A D | strcspn.c | 46 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; in strcspn() local 53 tbl[0] = 1; in strcspn() 54 tbl[3] = tbl[2] = tbl[1] = 0; in strcspn() 56 for (tbl[0] = idx = 1; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strcspn() 57 tbl[idx] = 0; in strcspn() 62 tbl[idx] |= bit; in strcspn() 68 if ((tbl[idx] & bit) != 0) in strcspn()
|
| H A D | strspn.c | 46 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; in strspn() local 53 tbl[3] = tbl[2] = tbl[1] = tbl[0] = 0; in strspn() 55 for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strspn() 56 tbl[idx] = 0; in strspn() 61 tbl[idx] |= bit; in strspn() 67 if ((tbl[idx] & bit) == 0) in strspn()
|
| /src/sys/x86/iommu/ |
| H A D | intel_idpgtbl.c | 112 dmar_idmap_nextlvl(struct idpgtbl *tbl, int lvl, vm_pindex_t idx, in dmar_idmap_nextlvl() argument 122 VM_OBJECT_ASSERT_LOCKED(tbl->pgtbl_obj); in dmar_idmap_nextlvl() 123 if (addr >= tbl->maxaddr) in dmar_idmap_nextlvl() 125 (void)iommu_pgalloc(tbl->pgtbl_obj, idx, IOMMU_PGF_OBJL | in dmar_idmap_nextlvl() 128 pg_sz = pglvl_page_size(tbl->pglvl, lvl); in dmar_idmap_nextlvl() 129 if (lvl != tbl->leaf) { in dmar_idmap_nextlvl() 131 dmar_idmap_nextlvl(tbl, lvl + 1, base + i, f); in dmar_idmap_nextlvl() 133 VM_OBJECT_WUNLOCK(tbl->pgtbl_obj); in dmar_idmap_nextlvl() 134 pte = iommu_map_pgtbl(tbl->pgtbl_obj, idx, IOMMU_PGF_WAITOK, &sf); in dmar_idmap_nextlvl() 135 if (lvl == tbl->leaf) { in dmar_idmap_nextlvl() [all …]
|
| /src/sys/arm64/rockchip/ |
| H A D | rk_tsadc.c | 387 struct rk_calib_entry *tbl; in tsadc_temp_to_raw() local 390 tbl = sc->conf->calib_info.table; in tsadc_temp_to_raw() 393 if (temp <= tbl[0].temp) in tsadc_temp_to_raw() 394 return (tbl[0].raw); in tsadc_temp_to_raw() 396 if (temp >= tbl[ntbl - 1].temp) in tsadc_temp_to_raw() 397 return (tbl[ntbl - 1].raw); in tsadc_temp_to_raw() 401 if (temp == tbl[i].temp) in tsadc_temp_to_raw() 402 return (tbl[i].raw); in tsadc_temp_to_raw() 403 if (temp < tbl[i].temp) in tsadc_temp_to_raw() 411 raw = (int)tbl[i - 1].raw - (int)tbl[i].raw; in tsadc_temp_to_raw() [all …]
|
| /src/lib/msun/ld80/ |
| H A D | s_expl.c | 241 t = (long double)tbl[n2].lo + tbl[n2].hi; in expm1l() 244 t = SUM2P(tbl[n2].hi - 1, tbl[n2].lo * (r1 + 1) + t * q + in expm1l() 245 tbl[n2].hi * r1); in expm1l() 249 t = SUM2P(tbl[n2].hi - 2, tbl[n2].lo * (r1 + 1) + t * q + in expm1l() 250 tbl[n2].hi * r1); in expm1l() 254 t = SUM2P(tbl[n2].hi, tbl[n2].lo + t * (q + r1)); in expm1l() 258 t = SUM2P(tbl[n2].hi, tbl[n2].lo + t * (q + r1)); in expm1l() 268 t = SUM2P(tbl[n2].hi, tbl[n2].lo - twomk + t * (q + r1)); in expm1l() 270 t = SUM2P(tbl[n2].hi - twomk, tbl[n2].lo + t * (q + r1)); in expm1l()
|
| /src/crypto/openssl/crypto/whrlpool/asm/ |
| H A D | wp-mmx.pl | 86 $tbl="ebp"; 111 &blindpop($tbl); 112 &lea ($tbl,&DWP(&label("table")."-".&label("pic_point"),$tbl)); 127 &movq (@mm[0],&QWP(2048*$SCALE,$tbl,"esi",8)); # rc[r] 139 &pxor (@mm[0],&QWP(&row(0),$tbl,"esi",8)); 140 &$func (@mm[1],&QWP(&row(1),$tbl,"edi",8)); 146 &$func (@mm[2],&QWP(&row(2),$tbl,"esi",8)); 147 &$func (@mm[3],&QWP(&row(3),$tbl,"edi",8)); 153 &$func (@mm[4],&QWP(&row(4),$tbl,"esi",8)); 154 &$func (@mm[5],&QWP(&row(5),$tbl,"edi",8)); [all …]
|