Home
last modified time | relevance | path

Searched refs:tbl (Results 1 – 25 of 228) sorted by relevance

12345678910

/freebsd-14-stable/contrib/mandoc/
HDtbl.c37 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 …]
HDtbl_layout.c65 mods(struct tbl_node *tbl, struct tbl_cell *cp, in mods() argument
207 cell(struct tbl_node *tbl, struct tbl_row *rp, in cell() argument
255 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) in cell()
262 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell()
266 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_layout() argument
286 tbl->part = TBL_PART_DATA; in tbl_layout()
293 if (tbl->first_row == NULL) { in tbl_layout()
294 tbl->first_row = tbl->last_row = in tbl_layout()
297 if (tbl->first_row->first == NULL) { in tbl_layout()
300 cell_alloc(tbl, tbl->first_row, in tbl_layout()
[all …]
HDtbl_data.c43 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 …]
HDout.c117 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first, in tblcalc() argument
135 assert(tbl->cols == NULL); in tblcalc()
136 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols, in tblcalc()
155 tbl->cols[++maxcol].spacing = SIZE_MAX; in tblcalc()
156 col = tbl->cols + icol; in tblcalc()
168 (*tbl->sulen)(&su, tbl->arg); in tblcalc()
181 width = tblcalc_data(tbl, in tblcalc()
221 col = tbl->cols + icol; in tblcalc()
243 width = tbl->cols[icol].width; in tblcalc()
245 width += tbl->cols[icol].spacing; in tblcalc()
[all …]
/freebsd-14-stable/contrib/libucl/uthash/
HDuthash.h81 #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 …]
/freebsd-14-stable/contrib/elftoolchain/common/
HDuthash.h82 #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 …]
/freebsd-14-stable/crypto/openssl/crypto/aes/asm/
HDaes-armv4.pl70 $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 …]
HDaes-parisc.pl72 $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 …]
HDaes-sparcv9.pl75 $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 …]
HDaes-586.pl213 $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 …]
HDaes-s390x.pl121 $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 …]
/freebsd-14-stable/sys/opencrypto/
HDgfmult.c61 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 …]
/freebsd-14-stable/usr.bin/fortune/unstr/
HDunstr.c80 static STRFILE tbl; /* description table */ in main() local
94 if (fread((char *)&tbl, sizeof(tbl), 1, Dataf) != 1) { in main()
100 tbl.str_version = be32toh(tbl.str_version); in main()
101 tbl.str_numstr = be32toh(tbl.str_numstr); in main()
102 tbl.str_longlen = be32toh(tbl.str_longlen); in main()
103 tbl.str_shortlen = be32toh(tbl.str_shortlen); in main()
104 tbl.str_flags = be32toh(tbl.str_flags); in main()
105 if (!(tbl.str_flags & (STR_ORDERED | STR_RANDOM))) in main()
107 Delimch = tbl.str_delim; in main()
108 order_unstr(&tbl); in main()
[all …]
/freebsd-14-stable/sbin/pfctl/
HDpfctl_radix.c60 pfr_report_error(struct pfr_table *tbl, struct pfioc_table *io, in pfr_report_error() argument
74 err, tbl->pfrt_name); in pfr_report_error()
94 pfr_add_tables(struct pfr_table *tbl, int size, int *nadd, int flags) in pfr_add_tables() argument
98 if (size < 0 || (size && tbl == NULL)) { in pfr_add_tables()
104 io.pfrio_buffer = tbl; in pfr_add_tables()
105 io.pfrio_esize = sizeof(*tbl); in pfr_add_tables()
108 pfr_report_error(tbl, &io, "add table"); in pfr_add_tables()
117 pfr_del_tables(struct pfr_table *tbl, int size, int *ndel, int flags) in pfr_del_tables() argument
121 if (size < 0 || (size && tbl == NULL)) { in pfr_del_tables()
127 io.pfrio_buffer = tbl; in pfr_del_tables()
[all …]
/freebsd-14-stable/sys/crypto/openssl/aarch64/
HDvpaes-armv8.S138 tbl v1.16b, {v20.16b}, v1.16b // vpshufb %xmm1, %xmm2, %xmm1
140 tbl v2.16b, {v21.16b}, v0.16b // vpshufb %xmm0, %xmm3, %xmm2
149 tbl v4.16b, {v25.16b}, v2.16b // vpshufb %xmm2, %xmm13, %xmm4 # 4 = sb1u
151 tbl v0.16b, {v24.16b}, v3.16b // vpshufb %xmm3, %xmm12, %xmm0 # 0 = sb1t
153 tbl v5.16b, {v27.16b}, v2.16b // vpshufb %xmm2, %xmm15, %xmm5 # 4 = sb2u
155 tbl v2.16b, {v26.16b}, v3.16b // vpshufb %xmm3, %xmm14, %xmm2 # 2 = sb2t
157 tbl v3.16b, {v0.16b}, v1.16b // vpshufb %xmm1, %xmm0, %xmm3 # 0 = B
159 tbl v0.16b, {v0.16b}, v4.16b // vpshufb %xmm4, %xmm0, %xmm0 # 3 = D
161 tbl v4.16b, {v3.16b}, v1.16b // vpshufb %xmm1, %xmm3, %xmm4 # 0 = 2B+C
171 tbl v5.16b, {v19.16b}, v1.16b // vpshufb %xmm1, %xmm11, %xmm5 # 2 = a/k
[all …]
/freebsd-14-stable/contrib/flex/src/
HDtables.c59 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 …]
HDgen.c107 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 …]
/freebsd-14-stable/sys/libkern/
HDstrcspn.c46 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()
HDstrspn.c46 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()
/freebsd-14-stable/lib/libc/string/
HDstrcspn.c45 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()
HDstrspn.c45 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()
/freebsd-14-stable/sys/x86/iommu/
HDintel_idpgtbl.c112 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 …]
/freebsd-14-stable/sys/arm64/rockchip/
HDrk_tsadc.c387 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 …]
/freebsd-14-stable/lib/msun/ld80/
HDs_expl.c241 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()
/freebsd-14-stable/crypto/openssl/crypto/whrlpool/asm/
HDwp-mmx.pl86 $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 …]

12345678910