/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_retstack.c | 39 retstack->top = 0; in pt_retstack_init() 48 return (retstack->top == retstack->bottom ? 1 : 0); in pt_retstack_is_empty() 53 uint8_t top; in pt_retstack_pop() local 58 top = retstack->top; in pt_retstack_pop() 60 if (top == retstack->bottom) in pt_retstack_pop() 63 top = (!top ? pt_retstack_size : top - 1); in pt_retstack_pop() 65 retstack->top = top; in pt_retstack_pop() 68 *ip = retstack->stack[top]; in pt_retstack_pop() 75 uint8_t top, bottom; in pt_retstack_push() local 80 top = retstack->top; in pt_retstack_push() [all …]
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_exp.c | 144 if (a->top == 1 && !a->neg in BN_mod_exp() 332 if (m->top <= BN_CONSTTIME_SIZE_LIMIT in BN_mod_exp_mont() 400 j = m->top; /* borrow j */ in BN_mod_exp_mont() 408 r->top = j; in BN_mod_exp_mont() 469 j = mont->N.top; /* borrow j */ in BN_mod_exp_mont() 473 val[0]->top = j; in BN_mod_exp_mont() 496 if (wordpos >= 0 && wordpos < a->top) { in bn_get_bits() 500 if (++wordpos < a->top) in bn_get_bits() 515 static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, in MOD_EXP_CTIME_COPY_TO_PREBUF() argument 523 if (top > b->top) in MOD_EXP_CTIME_COPY_TO_PREBUF() [all …]
|
H A D | bn_shift.c | 24 if (bn_wexpand(r, a->top + 1) == NULL) in BN_lshift1() 26 r->top = a->top; in BN_lshift1() 28 if (bn_wexpand(r, a->top + 1) == NULL) in BN_lshift1() 34 for (i = 0; i < a->top; i++) { in BN_lshift1() 40 r->top += c; in BN_lshift1() 57 i = a->top; in BN_rshift1() 65 r->top = i; in BN_rshift1() 69 r->top -= (t == 1); in BN_rshift1() 75 if (!r->top) in BN_rshift1() 175 int i, top, nw; bn_rshift_fixed_top() local [all...] |
H A D | bn_word.c | 44 for (i = a->top - 1; i >= 0; i--) { in BN_mod_word() 72 if (a->top == 0) in BN_div_word() 81 for (i = a->top - 1; i >= 0; i--) { in BN_div_word() 89 if ((a->top > 0) && (a->d[a->top - 1] == 0)) in BN_div_word() 90 a->top--; in BN_div_word() 92 if (!a->top) in BN_div_word() 120 for (i = 0; w != 0 && i < a->top; i++) { in BN_add_word() 124 if (w && i == a->top) { in BN_add_word() 125 if (bn_wexpand(a, a->top + 1) == NULL) in BN_add_word() 127 a->top++; in BN_add_word() [all …]
|
H A D | bn_lib.c | 157 int i = a->top - 1; in bn_num_bits_consttime() 180 int i = a->top - 1; in BN_num_bits() 287 assert(b->top <= words); in bn_expand_internal() 288 if (b->top > 0) in bn_expand_internal() 289 memcpy(a, b->d, sizeof(*a) * b->top); in bn_expand_internal() 342 bn_words = BN_get_flags(b, BN_FLG_CONSTTIME) ? b->dmax : b->top; in BN_copy() 349 if (b->top > 0) in BN_copy() 353 a->top = b->top; in BN_copy() 378 tmp_top = a->top; in BN_swap() [all...] |
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lapi.c | 55 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr() 56 if (o >= L->top) return NONVALIDVALUE; in index2addr() 60 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr() 61 return L->top + idx; in index2addr() 92 if (L->stack_last - L->top > size) /* stack large enough? */ in lua_checkstack() 95 int inuse = cast_int(L->top - L->stack) + EXTRA_STACK; in lua_checkstack() 101 if (res && ci->top < L->top + size) in lua_checkstack() 102 ci->top = L->top + size; /* adjust frame top */ in lua_checkstack() 114 api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); in lua_xmove() 115 from->top -= n; in lua_xmove() [all …]
|
H A D | lvm.c | 85 ci->func = L->top - 1; /* protect stack below results */ in traceexec() 96 setobj2s(L, L->top++, f); /* push function */ in callTM() 97 setobj2s(L, L->top++, p1); /* 1st argument */ in callTM() 98 setobj2s(L, L->top++, p2); /* 2nd argument */ in callTM() 100 setobj2s(L, L->top++, p3); /* 3rd argument */ in callTM() 102 luaD_call(L, L->top - (4 - hasres), hasres, isLua(L->ci)); in callTM() 105 setobjs2s(L, p3, --L->top); in callTM() 202 if (!call_binTM(L, p1, p2, L->top, event)) in call_orderTM() 205 return !l_isfalse(L->top); in call_orderTM() 288 callTM(L, tm, t1, t2, L->top, 1); /* call TM */ in luaV_equalobj_() [all …]
|
/freebsd/contrib/libxo/tests/core/saved/ |
H A D | test_12.HIPx.out | 6 …<div class="data color-fg-yellow color-bg-blue" data-tag="animal" data-xpath="/top/data/animal">fi… 8 …<div class="data color-fg-green color-bg-yellow" data-tag="animal" data-xpath="/top/data/animal">f… 12 <div class="data color-fg-red" data-tag="name" data-xpath="/top/data/thing/name">thing</div> 14 …<div class="data color-fg-green" data-tag="color" data-xpath="/top/data/thing[name = 'thing']/colo… 16 <div class="data" data-tag="time" data-xpath="/top/data/thing[name = 'thing']/time">02:15</div> 20 …<div class="data color-fg-red" data-tag="hand" data-xpath="/top/data/thing[name = 'thing']/hand">l… 22 …<div class="data color-fg-blue" data-tag="color" data-xpath="/top/data/thing[name = 'thing']/color… 24 <div class="data" data-tag="time" data-xpath="/top/data/thing[name = 'thing']/time">03:45</div> 28 <div class="data color-fg-red" data-tag="name" data-xpath="/top/data/thing/name">thing</div> 30 …<div class="data color-fg-green" data-tag="color" data-xpath="/top/data/thing[name = 'thing']/colo… [all …]
|
H A D | test_08.HIPx.out | 6 …<div class="data" data-tag="name" data-xpath="/top/data/contents/item/name" data-key="key">gum … 7 …<div class="data" data-tag="count" data-xpath="/top/data/contents/item[name = 'gum']/count"> … 10 …<div class="data" data-tag="name" data-xpath="/top/data/contents/item/name" data-key="key">rope … 11 …<div class="data" data-tag="count" data-xpath="/top/data/contents/item[name = 'rope']/count"> … 14 …<div class="data" data-tag="name" data-xpath="/top/data/contents/item/name" data-key="key">ladder … 15 …<div class="data" data-tag="count" data-xpath="/top/data/contents/item[name = 'ladder']/count"> … 18 …<div class="data" data-tag="name" data-xpath="/top/data/contents/item/name" data-key="key">bolt … 19 …<div class="data" data-tag="count" data-xpath="/top/data/contents/item[name = 'bolt']/count"> … 22 …<div class="data" data-tag="name" data-xpath="/top/data/contents/item/name" data-key="key">water … 23 …<div class="data" data-tag="count" data-xpath="/top/data/contents/item[name = 'water']/count"> … [all …]
|
H A D | test_02.HIPx.out | 2 <div class="data" data-tag="name" data-xpath="/top/data/name">em0 </div> 8 …<div class="data" data-tag="what" data-xpath="/top/data[name = 'em0 '][name = 'em0']/what">braces… 24 …<div class="data" data-tag="length" data-xpath="/top/data[name = 'em0 '][name = 'em0']/length">ab… 28 <div class="data" data-tag="fd" data-xpath="/top/data[name = 'em0 '][name = 'em0']/fd">-1</div> 30 …<div class="data" data-tag="error" data-xpath="/top/data[name = 'em0 '][name = 'em0']/error">Bad … 32 …<div class="data" data-tag="test" data-xpath="/top/data[name = 'em0 '][name = 'em0']/test">good</… 36 <div class="data" data-tag="fd" data-xpath="/top/data[name = 'em0 '][name = 'em0']/fd">-1</div> 38 …<div class="data" data-tag="error" data-xpath="/top/data[name = 'em0 '][name = 'em0']/error">Bad … 40 …<div class="data" data-tag="test" data-xpath="/top/data[name = 'em0 '][name = 'em0']/test">good</… 48 …<div class="data" data-tag="lines" data-xpath="/top/data[name = 'em0 '][name = 'em0']/lines"> … [all …]
|
H A D | test_01.HIPx.out | 3 <div class="data" data-tag="type" data-xpath="/top-level/type">ethernet</div> 5 <div class="data" data-tag="type" data-xpath="/top-level/type">bridge</div> 7 <div class="data" data-tag="type" data-xpath="/top-level/type"> 18u</div> 9 <div class="data" data-tag="type" data-xpath="/top-level/type"> 24</div> 12 <div class="data" data-tag="address" data-xpath="/top-level/address">0x0</div> 14 <div class="data" data-tag="port" data-xpath="/top-level/port">1</div> 19 <div class="data" data-tag="address" data-xpath="/top-level/address">0x0</div> 21 <div class="data" data-tag="port" data-xpath="/top-level/port">1</div> 26 <div class="data" data-tag="address" data-xpath="/top-level/address">0x0</div> 28 <div class="data" data-tag="port" data-xpath="/top-level/port">1</div> [all …]
|
/freebsd/crypto/openssh/ |
H A D | bitmap.c | 34 size_t top; /* index of top word allocated */ member 49 ret->top = 0; in bitmap_new() 68 b->top = 0; in bitmap_zero() 74 if (b->top >= b->len) in bitmap_test_bit() 76 if (b->len == 0 || (n / BITMAP_BITS) > b->top) in bitmap_test_bit() 87 if (b->top >= b->len || n > BITMAP_MAX) in reserve() 109 if (offset > b->top) in bitmap_set_bit() 110 b->top = offset; in bitmap_set_bit() 119 if (b->top >= b->len) in retop() 121 while (b->top > 0 && b->d[b->top] == 0) in retop() [all …]
|
/freebsd/contrib/libxo/tests/gettext/saved/ |
H A D | gt_01.HIPx.out | 3 <div class="data" data-tag="noun" data-xpath="/top/noun">ordsway</div> 5 <div class="data" data-tag="adjective" data-xpath="/top/adjective">amingflay</div> 7 <div class="data" data-tag="owner" data-xpath="/top/owner">ymay</div> 8 <div class="data" data-tag="target" data-xpath="/top/target">ouchcay</div> 10 <div class="data" data-tag="verb" data-xpath="/top/verb">urningbay</div> 14 <div class="data" data-tag="noun" data-xpath="/top/noun">ordsway</div> 16 <div class="data" data-tag="owner" data-xpath="/top/owner">ymay</div> 17 <div class="data" data-tag="adjective" data-xpath="/top/adjective">amingflay</div> 18 <div class="data" data-tag="target" data-xpath="/top/target">ouchcay</div> 20 <div class="data" data-tag="verb" data-xpath="/top/verb">urningbay</div> [all …]
|
/freebsd/lib/libc/gmon/ |
H A D | mcount.c | 69 struct tostruct *top, *prevtop; in _MCOUNT_DECL() local 194 top = &p->tos[toindex]; in _MCOUNT_DECL() 195 top->selfpc = selfpc; in _MCOUNT_DECL() 196 top->count = 1; in _MCOUNT_DECL() 197 top->link = 0; in _MCOUNT_DECL() 200 top = &p->tos[toindex]; in _MCOUNT_DECL() 201 if (top->selfpc == selfpc) { in _MCOUNT_DECL() 205 top->count++; in _MCOUNT_DECL() 215 if (top->link == 0) { in _MCOUNT_DECL() 226 top = &p->tos[toindex]; in _MCOUNT_DECL() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | beneath.sh | 37 top=/tmp/beneath.d 38 mkdir -p $top 39 cat > $top/beneath.c <<EOF 77 cc -o $top/beneath -Wall -Wextra $top/beneath.c || exit 1 78 rm $top/beneath.c 81 cd $top 84 ./beneath $top/a/b 85 touch $top/a/c 87 ./beneath $top/a/c 89 ./beneath $top/a/d [all …]
|
H A D | beneath4.sh | 104 top=$dir/a 121 $dir/beneath4 $top a 0x2000 0 || s=1 122 $dir/beneath4 $top b 0x2000 2 || s=1 123 $dir/beneath4 $top c 0x2000 0 || s=1 124 $dir/beneath4 $top d 0x2000 93 || s=1 125 $dir/beneath4 $top e 0x2000 93 || s=1 126 $dir/beneath4 $top fifo 0x2000 0 || s=1 127 $dir/beneath4 $top $top/../../beneath4.d/a/a 0x2000 93 || s=1 128 $dir/beneath4 $top $top/.. 0x2000 93 || s=1 129 $dir/beneath4 $top ../a 0x2000 93 || s=1 [all …]
|
/freebsd/contrib/lua/src/ |
H A D | lapi.c | 64 api_check(L, idx <= ci->top.p - (ci->func.p + 1), "unacceptable index"); in index2value() 65 if (o >= L->top.p) return &G(L)->nilvalue; in index2value() 69 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2value() 71 return s2v(L->top.p + idx); in index2value() 99 api_check(L, o < L->top.p, "invalid index"); in index2stack() 103 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2stack() 106 return L->top.p + idx; in index2stack() 117 if (L->stack_last.p - L->top.p > n) /* stack large enough? */ in lua_checkstack() 121 if (res && ci->top.p < L->top.p + n) in lua_checkstack() 122 ci->top.p = L->top.p + n; /* adjust frame top */ in lua_checkstack() [all …]
|
H A D | ltm.c | 105 StkId func = L->top.p; in luaT_callTM() 110 L->top.p = func + 4; in luaT_callTM() 122 StkId func = L->top.p; in luaT_callTMres() 126 L->top.p += 3; in luaT_callTMres() 133 setobjs2s(L, res, --L->top.p); /* move result to its place */ in luaT_callTMres() 168 StkId top = L->top.p; in luaT_tryconcatTM() local 169 if (l_unlikely(!callbinTM(L, s2v(top - 2), s2v(top - 1), top - 2, in luaT_tryconcatTM() 171 luaG_concaterror(L, s2v(top - 2), s2v(top - 1)); in luaT_tryconcatTM() 203 if (callbinTM(L, p1, p2, L->top.p, event)) /* try original event */ in luaT_callorderTM() 204 return !l_isfalse(s2v(L->top.p)); in luaT_callorderTM() [all …]
|
H A D | ldo.c | 107 setobjs2s(L, oldtop, L->top.p - 1); /* error message on current top */ in luaD_seterrorobj() 111 L->top.p = oldtop + 1; in luaD_seterrorobj() 124 setobjs2s(L, g->mainthread->top.p++, L->top.p - 1); /* copy error obj. */ in luaD_throw() 168 L->top.offset = savestack(L, L->top.p); in relstack() 173 ci->top.offset = savestack(L, ci->top.p); in relstack() 185 L->top.p = restorestack(L, L->top.offset); in correctstack() 190 ci->top.p = restorestack(L, ci->top.offset); in correctstack() 255 int needed = cast_int(L->top.p - L->stack.p) + n; in luaD_growstack() 279 StkId lim = L->top.p; in stackinuse() 281 if (lim < ci->top.p) lim = ci->top.p; in stackinuse() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_smp.c | 644 static struct cpu_group *top = NULL; in smp_topo() local 650 if (top != NULL) in smp_topo() 651 return (top); in smp_topo() 659 top = smp_topo_1level(CG_SHARE_NONE, 2, 0); in smp_topo() 663 top = smp_topo_none(); in smp_topo() 667 top = smp_topo_1level(CG_SHARE_L2, 2, 0); in smp_topo() 671 top = smp_topo_1level(CG_SHARE_L3, 4, 0); in smp_topo() 675 top = smp_topo_2level(CG_SHARE_NONE, 2, CG_SHARE_L2, 2, 0); in smp_topo() 679 top = smp_topo_1level(CG_SHARE_L1, 2, CG_FLAG_HTT); in smp_topo() 683 top = smp_topo_2level(CG_SHARE_L3, 4, CG_SHARE_L2, 8, in smp_topo() [all …]
|
/freebsd/sys/crypto/aesni/ |
H A D | aesni_wrap.c | 112 struct blocks8 *top; in aesni_encrypt_ecb() local 119 top = (struct blocks8 *)to; in aesni_encrypt_ecb() 123 top->blk[0] = tout[0]; in aesni_encrypt_ecb() 124 top->blk[1] = tout[1]; in aesni_encrypt_ecb() 125 top->blk[2] = tout[2]; in aesni_encrypt_ecb() 126 top->blk[3] = tout[3]; in aesni_encrypt_ecb() 127 top->blk[4] = tout[4]; in aesni_encrypt_ecb() 128 top->blk[5] = tout[5]; in aesni_encrypt_ecb() 129 top->blk[6] = tout[6]; in aesni_encrypt_ecb() 130 top->blk[7] = tout[7]; in aesni_encrypt_ecb() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/ |
H A D | tst.general.d.out | 171 in |{ "top": { "mid" : { "legs": "feet" }, "number": 9, "array":[0,1,{"a":true,"bb":[1,2,false,{"… 172 sel |top| 176 sel |top.mid| 178 sel |top.centre| 180 sel |top.mid.legs| 182 sel |top.mid.number| 184 sel |top.mid.array| 186 sel |top.number| 188 sel |top.array| 190 sel |top.array[0]| [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_thread.cpp | 27 stack_.top = stack_.bottom + stack_size; in SetThreadStackAndTls() 35 __msan_unpoison((void *)stack_.bottom, stack_.top - stack_.bottom); in ClearShadowForThreadStackAndTLS() 48 CHECK(MEM_IS_APP(stack_.top - 1)); in Init() 84 return {stack_.bottom, stack_.top}; in GetStackBounds() 89 if (cur_stack >= next_stack_.bottom && cur_stack < next_stack_.top) in GetStackBounds() 90 return {next_stack_.bottom, next_stack_.top}; in GetStackBounds() 91 return {stack_.bottom, stack_.top}; in GetStackBounds() 94 uptr MsanThread::stack_top() { return GetStackBounds().top; } in stack_top() 100 return addr >= bounds.bottom && addr < bounds.top; in AddrIsInStack() 106 next_stack_.top = bottom + size; in StartSwitchFiber() [all …]
|
/freebsd/contrib/libxo/tests/xo/ |
H A D | xo_02.sh | 21 ${XOP} --top-wrap --open a/b/c "$@" 22 ${XOP} --top-wrap --close a/b/c --not-first "$@" 24 ${XOP} --top-wrap --wrap a/b/c "$@" 26 ${XOP} --top-wrap --open a/b/c "$@" 28 ${XOP} --top-wrap --close a/b/c --not-first "$@" 32 ${XOP} --top-wrap --wrap a/b/c "$@" 34 ${XOP} --top-wrap "test\n" 41 ${XOP} --top-wrap --open top/data 44 ${XOP} --top-wrap --close top/data
|
/freebsd/contrib/libcbor/src/cbor/internal/ |
H A D | builder_callbacks.c | 32 switch (ctx->stack->top->item->type) { in _cbor_builder_append() 37 if (cbor_array_is_definite(ctx->stack->top->item)) { in _cbor_builder_append() 41 CBOR_ASSERT(ctx->stack->top->subitems > 0); in _cbor_builder_append() 44 if (!cbor_array_push(ctx->stack->top->item, item)) { in _cbor_builder_append() 50 ctx->stack->top->subitems--; in _cbor_builder_append() 51 if (ctx->stack->top->subitems == 0) { in _cbor_builder_append() 52 cbor_item_t *stack_item = ctx->stack->top->item; in _cbor_builder_append() 58 if (!cbor_array_push(ctx->stack->top->item, item)) { in _cbor_builder_append() 69 if (ctx->stack->top->subitems % 2) { in _cbor_builder_append() 72 !_cbor_map_add_value(ctx->stack->top in _cbor_builder_append() [all...] |