Home
last modified time | relevance | path

Searched refs:bc (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/freebsd/usr.sbin/bhyve/
H A Dblock_if.c135 blockif_enqueue(struct blockif_ctxt *bc, struct blockif_req *breq, in blockif_enqueue() argument
142 be = TAILQ_FIRST(&bc->bc_freeq); in blockif_enqueue()
145 TAILQ_REMOVE(&bc->bc_freeq, be, be_link); in blockif_enqueue()
160 TAILQ_FOREACH(tbe, &bc->bc_pendq, be_link) { in blockif_enqueue()
165 TAILQ_FOREACH(tbe, &bc->bc_busyq, be_link) { in blockif_enqueue()
174 TAILQ_INSERT_TAIL(&bc->bc_pendq, be, be_link); in blockif_enqueue()
179 blockif_dequeue(struct blockif_ctxt *bc, pthread_t t, struct blockif_elem **bep) in blockif_dequeue() argument
183 TAILQ_FOREACH(be, &bc->bc_pendq, be_link) { in blockif_dequeue()
190 TAILQ_REMOVE(&bc->bc_pendq, be, be_link); in blockif_dequeue()
193 TAILQ_INSERT_TAIL(&bc->bc_busyq, be, be_link); in blockif_dequeue()
[all …]
H A Dblock_if.h69 int blockif_add_boot_device(struct pci_devinst *const pi, struct blockif_ctxt *const bc);
71 int blockif_register_resize_callback(struct blockif_ctxt *bc,
73 off_t blockif_size(struct blockif_ctxt *bc);
74 void blockif_chs(struct blockif_ctxt *bc, uint16_t *c, uint8_t *h,
76 int blockif_sectsz(struct blockif_ctxt *bc);
77 void blockif_psectsz(struct blockif_ctxt *bc, int *size, int *off);
78 int blockif_queuesz(struct blockif_ctxt *bc);
79 int blockif_is_ro(struct blockif_ctxt *bc);
80 int blockif_candelete(struct blockif_ctxt *bc);
81 int blockif_read(struct blockif_ctxt *bc, struct blockif_req *breq);
[all …]
/freebsd/stand/common/
H A Dbcache.c83 #define BHASH(bc, blkno) ((blkno) & ((bc)->bcache_nblks - 1)) argument
84 #define BCACHE_LOOKUP(bc, blkno) \ argument
85 ((bc)->bcache_ctl[BHASH((bc), (blkno))].bc_blkno != (blkno))
90 static void bcache_invalidate(struct bcache *bc, daddr_t blkno);
91 static void bcache_insert(struct bcache *bc, daddr_t blkno);
92 static void bcache_free_instance(struct bcache *bc);
123 struct bcache *bc = malloc(sizeof (struct bcache)); in bcache_allocate() local
129 if (bc == NULL) { in bcache_allocate()
131 return (bc); in bcache_allocate()
141 bc->bcache_nblks = bcache_total_nblks >> i; in bcache_allocate()
[all …]
/freebsd/contrib/bc/tests/bc/scripts/
H A Dall.txt1 multiply.bc
2 divide.bc
3 subtract.bc
4 add.bc
5 print.bc
6 print2.bc
7 parse.bc
8 root.bc
9 array.bc
10 array2.bc
[all …]
/freebsd/sys/sys/
H A Dblockcount.h42 int _blockcount_sleep(blockcount_t *bc, struct lock_object *, const char *wmesg,
44 void _blockcount_wakeup(blockcount_t *bc, u_int old);
47 blockcount_init(blockcount_t *bc) in blockcount_init() argument
49 atomic_store_int(&bc->__count, 0); in blockcount_init()
53 blockcount_acquire(blockcount_t *bc, u_int n) in blockcount_acquire() argument
58 old = atomic_fetchadd_int(&bc->__count, n); in blockcount_acquire()
59 KASSERT(old + n > old, ("%s: counter overflow %p", __func__, bc)); in blockcount_acquire()
61 atomic_add_int(&bc->__count, n); in blockcount_acquire()
66 blockcount_release(blockcount_t *bc, u_int n) in blockcount_release() argument
71 old = atomic_fetchadd_int(&bc->__count, -n); in blockcount_release()
[all …]
/freebsd/contrib/bc/
H A DREADME.md1 # `bc`
4 because of spam. If you need to report a bug with `bc`, email gavin at this site
11 This is an implementation of the [POSIX `bc` calculator][12] that implements
12 [GNU `bc`][1] extensions, as well as the period (`.`) extension for the BSD
13 flavor of `bc`.
15 For more information, see this `bc`'s full manual.
17 This `bc` also includes an implementation of `dc` in the same binary, accessible
19 standalone `dc` binary is desired, `bc` can be copied and renamed to `dc`.) The
25 This `bc` also provides `bc`'
335 Performance`bc`""Comparison to GNU `bc` global() argument
345 Extensions`bc`""Comparison to GNU `bc` global() argument
[all...]
H A DMakefile.in52 BC_HEADERS = $(INCDIR)/bc.h
65 BC_LIB = $(GENDIR)/lib.bc
71 BC_LIB2 = $(GENDIR)/lib2.bc
93 BC = bc
348 @export BC_TEST_OUTPUT_DIR="$(BUILDDIR)/tests"; sh $(TESTSDIR)/stdin.sh bc %%BC_TEST_EXEC%%
351 @export BC_TEST_OUTPUT_DIR="$(BUILDDIR)/tests"; sh $(TESTSDIR)/read.sh bc %%BC_TEST_EXEC%%
356 @export BC_TEST_OUTPUT_DIR="$(BUILDDIR)/tests"; sh $(TESTSDIR)/errors.sh bc %%BC_TEST_EXEC%%
359 …@export BC_TEST_OUTPUT_DIR="$(BUILDDIR)/tests"; sh $(TESTSDIR)/other.sh bc $(BC_ENABLE_EXTRA_MATH)…
402 @sh $(TESTSDIR)/history.sh bc 0 %%BC_TEST_EXEC%%
405 @sh $(TESTSDIR)/history.sh bc 1 %%BC_TEST_EXEC%%
[all …]
H A DNEWS.md21 The first bug is that `bc`/`dc` will exit on macOS when the terminal is resized.
35 The bug was that `bc` attempted to jump out when flushing `stdout` on exit, but
49 This is a production release to fix problems in the `bc` manual.
120 This is a production release that fixes a `bc` dependency loop for minimal
146 `tests/bc/scripts/timeconst.bc` doesn't exist. This should only affect
155 This is a production release that moves `bc` to <https://git.gavinhoward.com>.
166 parameter had the same name as the array whose element was used, `bc` would grab
180 * A crash when `bc` and `dc` are built using editline, but history is not
199 This is a production release that fixes a discrepancy from the `bc` standard,
202 The discrepancy from the `bc` standard was with regards to the behavior of the
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/data/
H A Dstartend.in4 [abc] &# a(bc)d b
7 b.*c &# b(bc)c bc
8 b.* &# b(bc)c bc
9 .*c &# b(bc)c bc
H A Dbackref.in8 a\([bc]\)\1d b abcdabbd abbd b
9 a\(\([bc]\)\2\)*d b abbccd abbccd
10 a\(\([bc]\)\2\)*d b abbcbd
17 \(a\)\1bc*d b aabcd aabcd
18 \(a\)\1bc*d b aabd aabd
19 \(a\)\1bc*d b aabcccd aabcccd
20 \(a\)\1bc*[ce]d b aabcccd aabcccd
H A Dsubexp.in13 (a|ab)(bc([de]+)f|cde) - abcdef abcdef a,bcdef,de
20 a([bc]?)c - abc abc b
21 a([bc]?)c - ac ac @c
22 a([bc]+)c - abc abc b
23 a([bc]+)c - abcc abcc bc
24 a([bc]+)bc - abcbc abcbc bc
30 (a*)* - bc @b @b
H A Dmeta.in3 a[bc]d & abd abd
8 a\bc &CP EESCAPE
11 a\\bc & a\bc a\bc
/freebsd/contrib/bc/tests/bc/
H A Dtimeconst.sh28 # Tests the timeconst.bc script from the Linux kernel build.
29 # You can find the script at kernel/time/timeconst.bc in any Linux repo.
56 timeconst="$testdir/scripts/timeconst.bc"
61 bc="$1"
63 check_exec_arg "$bc"
65 bc="$testdir/../../bin/bc"
66 check_exec_arg "$bc"
96 # Get a list of numbers. Funny how bc can help with that.
97 nums=$(printf 'for (i = 0; i <= 1000; ++i) { i }\n' | bc)
[all...]
/freebsd/usr.bin/gh-bc/
H A DMakefile3 PROG= gh-bc
4 PROGNAME= bc
8 SRCS= args.c bc.c bc_lex.c bc_parse.c data.c dc.c dc_lex.c dc_parse.c file.c history.c
14 MAN= bc.1 dc.1
16 LINKS= ${BINDIR}/bc ${BINDIR}/dc
31 NLSNAME= bc
72 MAN_SRC_BC= bc/N.1
76 MAN_SRC_BC= bc/A.1
112 lib.c: lib.bc Makefile
113 cd ${BCDIR} && sh gen/strgen.sh gen/lib.bc ${.OBJDIR}/lib.c 0 bc_lib bc_lib_name "" 1
[all …]
/freebsd/usr.bin/gh-bc/tests/
H A DMakefile5 TEST_DIR= ${SRCTOP}/contrib/bc
7 TESTSDIR= ${TESTSBASE}/usr.bin/gh-bc
25 FILESbcDIR= ${TESTSDIR}/tests/bc
26 FILESbc!= echo ${TEST_DIR}/tests/bc/*.*
30 FILESbc_errorsDIR= ${TESTSDIR}/tests/bc/errors
31 FILESbc_errors!= echo ${TEST_DIR}/tests/bc/errors/*.*
35 FILESbc_scriptsDIR= ${TESTSDIR}/tests/bc/scripts
36 FILESbc_scripts!= echo ${TEST_DIR}/tests/bc/scripts/*.*
/freebsd/bin/sh/tests/expansion/
H A Dcmdsubst24.015 check "$LINENO" "$assign_builtin" "a bc d"
17 check "$LINENO" "$assign_pipeline" "a bc d"
21 check "$LINENO" "$splits" "a@bc@d@a@bc@d@a bc d@a bc d"
/freebsd/lib/libc/regex/
H A Dregcomp.c112 static bool p_ere_exp(struct parse *p, struct branchc *bc);
114 static int p_branch_eat_delim(struct parse *p, struct branchc *bc);
115 static void p_branch_ins_offset(struct parse *p, struct branchc *bc);
116 static void p_branch_fix_tail(struct parse *p, struct branchc *bc);
117 static bool p_branch_empty(struct parse *p, struct branchc *bc);
118 static bool p_branch_do(struct parse *p, struct branchc *bc);
119 static void p_bre_pre_parse(struct parse *p, struct branchc *bc);
120 static void p_bre_post_parse(struct parse *p, struct branchc *bc);
122 static bool p_simp_re(struct parse *p, struct branchc *bc);
388 p_ere_exp(struct parse *p, struct branchc *bc) in p_ere_exp() argument
[all …]
/freebsd/contrib/bc/manuals/
H A Dbuild.md3 This `bc` attempts to be as portable as possible. It can be built on any
9 The general form of configuring, building, and installing this `bc` is as
42 For releases, Windows builds of `bc`, `dc`, and `bcl` are available for download
43 from <https://git.gavinhoward.com/gavin/bc> and GitHub.
45 However, if you wish to build it yourself, this `bc` can be built using Visual
57 In Visual Studio, open up the solution file (`bc.sln` for `bc`, or `bcl.sln` for
65 To build `bc`, run the following from the root directory:
68 msbuild -property:Configuration=<config> vs/bc.sln
83 Building `bc`, `dc`, and `bcl` (the library) is more complex than on Windows
92 For example, if the source is in `bc`, the build should happen in `build`, then
[all …]
H A Dalgorithms.md3 This `bc` uses the math algorithms below:
7 This `bc` uses brute force addition, which is linear (`O(n)`) in the number of
12 This `bc` uses brute force subtraction, which is linear (`O(n)`) in the number
17 This `bc` uses two algorithms: [Karatsuba][1] and brute force.
22 this `bc`, is superlinear but subpolynomial (bounded by `O(n^log_2(3))`).
35 This `bc` uses Algorithm D ([long division][2]). Long division is polynomial
49 this `bc` is small code).
57 This `bc` implements [Exponentiation by Squaring][3], which (via Karatsuba) has
63 This `bc` implements the fast algorithm [Newton's Method][4] (also known as the
70 ### Sine and Cosine (`bc` Math Library Only)
[all …]
/freebsd/contrib/bc/gen/
H A Dbc_help.txt32 * The bc help text.
38 bc is a command-line, arbitrary-precision calculator with a Turing-complete
40 https://git.gavinhoward.com/gavin/bc/src/tag/%s/manuals/bc/%s.1.md.
42 This bc is compatible with both the GNU bc and the POSIX bc spec. See the GNU bc
43 manual (https://www.gnu.org/software/bc/manual/bc
[all...]
/freebsd/contrib/netbsd-tests/lib/libc/regex/data/att/
H A Dbasic.dat26 E (ab|a)(bc|c) abc (0,3)(0,2)(2,3)
91 BE ab*bc abc (0,3)
92 BE ab*bc abbc (0,4)
93 BE ab*bc abbbbc (0,6)
94 E ab+bc abbc (0,4)
95 E ab+bc abbbbc (0,6)
96 E ab?bc abbc (0,4)
97 E ab?bc abc (0,3)
107 BE a[bc]d abd (0,3)
114 BE a[^bc]d aed (0,3)
[all …]
/freebsd/sbin/bsdlabel/
H A Ddisktab27 :pc#720:oc#0:bc#4096:fc#512:
32 :pc#1440:oc#0:bc#4096:fc#512:
37 :pc#2400:oc#0:bc#4096:fc#512:
42 :pc#2880:oc#0:bc#4096:fc#512:
57 :pc#1600:oc#0:bc#4096:fc#512:
62 :pc#1640:oc#0:bc#4096:fc#512:
67 :pc#2952:oc#0:bc#4096:fc#512:
72 :pc#3444:oc#0:bc#4096:fc#512:
80 :pc#246528:oc#0:bc#4096:fc#512:
177 :pc#2880:oc#0:bc#4096:fc#512:
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_006_pos.ksh48 return=$(echo "$PERCENT * $value" | bc)
49 return=$(echo "$return / 100" | bc)
67 total_size=$(echo "$total_size * $block_count" | bc)
77 typeset refer_diff=$(echo "$refer_size - $estimate_size" | bc)
78 refer_diff=$(echo "$refer_diff / 1" | bc)
80 typeset file_diff=$(echo "$file_size - $estimate_size" | bc)
81 file_diff=$(echo "$file_diff / 1" | bc)
151 refer_size=$(echo "$refer_size - $deduct_size" | bc)
192 refer_size=$(echo "$refer_size * 3" | bc)
/freebsd/contrib/bearssl/src/ssl/
H A Dssl_engine_default_chapol.c35 br_chacha20_run bc; in br_ssl_engine_set_default_chapol() local
42 bc = br_chacha20_sse2_get(); in br_ssl_engine_set_default_chapol()
43 if (bc) { in br_ssl_engine_set_default_chapol()
44 br_ssl_engine_set_chacha20(cc, bc); in br_ssl_engine_set_default_chapol()
/freebsd/sys/dev/pms/RefTisa/sallsdk/spc/
H A Dmpi.c370 bit32 bc; in mpiMsgPrepare() local
386 bc = (((msgHeader->Header) >> SHIFT24) & BC_MASK); in mpiMsgPrepare()
387 SA_DBG6(("mpiMsgProduce: msgHeader bc %d\n", bc)); in mpiMsgPrepare()
392 SA_ASSERT(0 != bc, "The message buffer is not in \"allocated\" state " in mpiMsgPrepare()
396 ((bc & BC_MASK) << SHIFT24) | in mpiMsgPrepare()
403 (void *)msgHeader, circularQ->elementSize * bc); in mpiMsgPrepare()
408 (void *)msgHeader, circularQ->elementSize * bc); in mpiMsgPrepare()
470 bit32 bc; in mpiMsgProduce() local
511 bc = (((msgHeader->Header) >> SHIFT24) & BC_MASK); in mpiMsgProduce()
512 SA_DBG6(("mpiMsgProduce: msgHeader bc %d\n", bc)); in mpiMsgProduce()
[all …]

12345678910>>...17