Home
last modified time | relevance | path

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

12345678910>>...18

/freebsd/usr.sbin/bhyve/
H A Dblock_if.c379 bc = arg; in blockif_thr()
403 pthread_cond_wait(&bc->bc_cond, &bc->bc_mtx); in blockif_thr()
663 TAILQ_INSERT_HEAD(&bc->bc_freeq, &bc->bc_reqs[i], be_link); in blockif_open()
667 pthread_create(&bc->bc_btid[i], NULL, blockif_thr, bc); in blockif_open()
672 return (bc); in blockif_open()
698 bc = arg; in blockif_resized()
702 bc->bc_resize_cb(bc, bc->bc_resize_cb_arg, bc->bc_size); in blockif_resized()
911 free(bc); in blockif_close()
930 sectors = bc->bc_size / bc->bc_sectsz; in blockif_chs()
1023 pthread_cond_wait(&bc->bc_work_done_cond, &bc->bc_mtx); in blockif_pause()
[all …]
H A Dblock_if.h71 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);
86 int blockif_close(struct blockif_ctxt *bc);
88 void blockif_pause(struct blockif_ctxt *bc);
[all …]
/freebsd/stand/common/
H A Dbcache.c83 #define BHASH(bc, blkno) ((blkno) & ((bc)->bcache_nblks - 1)) argument
85 ((bc)->bcache_ctl[BHASH((bc), (blkno))].bc_blkno != (blkno))
131 return (bc); in bcache_allocate()
143 bc->bcache_data = malloc(bc->bcache_nblks * bcache_blksize); in bcache_allocate()
147 bc->bcache_data = malloc(bc->bcache_nblks * bcache_blksize + in bcache_allocate()
153 if ((bc->bcache_data == NULL) || (bc->bcache_ctl == NULL)) { in bcache_allocate()
167 return (bc); in bcache_allocate()
252 if (complete || (i == bc->ralen && bc->ralen > 0)) { in read_strategy()
312 ra = bc->bcache_nblks - BHASH(bc, p_blk + p_size); in read_strategy()
330 bc->ralen = 0; in read_strategy()
[all …]
/freebsd/contrib/bc/tests/bc/scripts/
H A Dall.txt1 multiply.bc
2 divide.bc
4 add.bc
5 print.bc
6 print2.bc
7 parse.bc
8 root.bc
9 array.bc
11 atan.bc
15 len.bc
[all …]
/freebsd/sys/sys/
H A Dblockcount.h44 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()
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()
74 _blockcount_wakeup(bc, old); in blockcount_release()
87 #define blockcount_sleep(bc, lo, wmesg, prio) \ argument
[all …]
/freebsd/contrib/bc/
H A DREADME.md1 # `bc`
13 flavor of `bc`.
82 #### `bc`
200 ../bc/configure.sh
268 `bc-gh`.
293 This `bc` can be used as a drop-in replacement for any existing `bc`. This `bc`
311 ## `bc` Libs
318 This `bc` compares favorably to GNU `bc`.
435 system `bc`:
441 or `howard-bc`.
[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
520 $(MANPAGE) bc
543 @$(RM) -f $(ROOTDIR)/benchmarks/bc/*.txt
574 @$(RM) -f $(TESTSDIR)/bc/parse.txt $(TESTSDIR)/bc/parse_results.txt
575 @$(RM) -f $(TESTSDIR)/bc/print.txt $(TESTSDIR)/bc/print_results.txt
576 @$(RM) -f $(TESTSDIR)/bc/bessel.txt $(TESTSDIR)/bc/bessel_results.txt
577 @$(RM) -f $(TESTSDIR)/bc/strings2.txt $(TESTSDIR)/bc/strings2_results.txt
[all …]
H A DNEWS.md111 `tests/bc/scripts/timeconst.bc` doesn't exist. This should only affect
259 to build a `bc` and `dc` that is by default compatible with either the BSD `bc`
302 GNU `bc`.
667 echo "if (1 < 3) 1" | bc
781 The second major bug fix was in `bc`'s `lib2.bc`. The `ceil()` function had a
792 First, the requirements for `bc` were pushed back to POSIX 2008. `bc` uses one
799 `bc` from allocating a large set of memory when `bc` starts.
1040 in the `bc` build system. No `bc` code was changed.
1169 added to this `bc`.
1256 This `bc` should now be the fastest `bc` available, but I may be wrong.
[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 Dmeta.in3 a[bc]d & abd abd
8 a\bc &CP EESCAPE
11 a\\bc & a\bc a\bc
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
/freebsd/contrib/bc/tests/bc/
H A Dtimeconst.sh61 bc="$1"
63 check_exec_arg "$bc"
65 bc="$testdir/../../bin/bc"
66 check_exec_arg "$bc"
97 nums=$(printf 'for (i = 0; i <= 1000; ++i) { i }\n' | bc)
103 printf '%s\n' "$i" | bc -q "$timeconst" > "$out1"
114 printf '%s\n' "$i" | "$bc" "$@" -q "$timeconst" > "$out2"
/freebsd/usr.bin/gh-bc/tests/
H A DMakefile6 TEST_DIR= ${SRCTOP}/contrib/bc
8 TESTSDIR= ${TESTSBASE}/usr.bin/gh-bc
26 FILESbcDIR= ${TESTSDIR}/tests/bc
27 FILESbc!= echo ${TEST_DIR}/tests/bc/*.*
31 FILESbc_errorsDIR= ${TESTSDIR}/tests/bc/errors
32 FILESbc_errors!= echo ${TEST_DIR}/tests/bc/errors/*.*
36 FILESbc_scriptsDIR= ${TESTSDIR}/tests/bc/scripts
37 FILESbc_scripts!= echo ${TEST_DIR}/tests/bc/scripts/*.*
/freebsd/usr.bin/gh-bc/
H A DMakefile4 PROG= gh-bc
5 PROGNAME= bc
15 MAN= bc.1 dc.1
17 LINKS= ${BINDIR}/bc ${BINDIR}/dc
32 NLSNAME= bc
73 MAN_SRC_BC= bc/N.1
77 MAN_SRC_BC= bc/A.1
113 lib.c: lib.bc Makefile
116 lib2.c: lib2.bc Makefile
125 bc.1:
[all …]
/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.c402 (void)bc; in p_ere_exp()
632 (void)bc; in p_branch_eat_delim()
649 bc->fwd = bc->start; in p_branch_ins_offset()
650 bc->back = bc->start; in p_branch_ins_offset()
658 ++bc->nbranch; in p_branch_ins_offset()
686 (void)bc; in p_branch_empty()
720 (void) bc; in p_bre_pre_parse()
762 bc.nbranch = 0; in p_re()
775 bc.terminate = p->parse_expr(p, &bc); in p_re()
776 ++bc.nchain; in p_re()
[all …]
/freebsd/contrib/bc/manuals/
H A Dbuild.md57 In Visual Studio, open up the solution file (`bc.sln` for `bc`, or `bcl.sln` for
96 ../bc/configure.sh
409 #### `bc` Only
416 ./configure.sh --bc-only
435 ./configure.sh --disable-bc
613 ./configure.sh -s bc.banner
623 ./configure.sh -S bc.banner
670 | bc.expr_exit | Whether to exit bc | 1 | BC_EXPR_EXIT |
682 | bc.digit_clamp | Whether to have bc | 0 | BC_DIGIT_CLAMP |
803 `bc`'s performance.
[all …]
H A Dalgorithms.md3 This `bc` uses the math algorithms below:
49 this `bc` is small code).
72 This `bc` uses the series
96 This `bc` uses the series
118 This `bc` uses the series
141 This `bc` uses the series
159 ### Bessel (`bc` Math Library Only)
161 This `bc` uses the series
328 ### Root (`bc` Math Library 2 Only)
363 ### Pi (`bc` Math Library 2 Only)
[all …]
/freebsd/contrib/bc/gen/
H A Dbc_help.txt32 * The bc help text.
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.html) and bc spec
44 (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/bc.html)
47 This bc has three differences to the GNU bc:
59 3) This bc has many more extensions than the GNU bc does. For details, see the
62 This bc also implements the dot (.) extension of the BSD bc.
104 Run the bc code in "file" and exit. See above as well.
162 meant for other bc implementations.
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/data/att/
H A Dbasic.dat91 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)
146 E (ab|ab*)bc abc (0,3)(0,1)
[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()
396 ((bc & BC_MASK) << SHIFT24) | 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()
523 ((bc & BC_MASK) << SHIFT24) | in mpiMsgProduce()
819 bit8 bc in mpiMsgFreeSet() argument
918 bit32 bc; in mpiMsgProduceOQ() local
[all …]

12345678910>>...18