Home
last modified time | relevance | path

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

12345678910>>...17

/freebsd-12-stable/usr.sbin/bhyve/
Dblock_if.c131 blockif_enqueue(struct blockif_ctxt *bc, struct blockif_req *breq, in blockif_enqueue() argument
138 be = TAILQ_FIRST(&bc->bc_freeq); in blockif_enqueue()
141 TAILQ_REMOVE(&bc->bc_freeq, be, be_link); in blockif_enqueue()
156 TAILQ_FOREACH(tbe, &bc->bc_pendq, be_link) { in blockif_enqueue()
161 TAILQ_FOREACH(tbe, &bc->bc_busyq, be_link) { in blockif_enqueue()
170 TAILQ_INSERT_TAIL(&bc->bc_pendq, be, be_link); in blockif_enqueue()
175 blockif_dequeue(struct blockif_ctxt *bc, pthread_t t, struct blockif_elem **bep) in blockif_dequeue() argument
179 TAILQ_FOREACH(be, &bc->bc_pendq, be_link) { in blockif_dequeue()
186 TAILQ_REMOVE(&bc->bc_pendq, be, be_link); in blockif_dequeue()
189 TAILQ_INSERT_TAIL(&bc->bc_busyq, be, be_link); in blockif_dequeue()
[all …]
Dblock_if.h63 off_t blockif_size(struct blockif_ctxt *bc);
64 void blockif_chs(struct blockif_ctxt *bc, uint16_t *c, uint8_t *h,
66 int blockif_sectsz(struct blockif_ctxt *bc);
67 void blockif_psectsz(struct blockif_ctxt *bc, int *size, int *off);
68 int blockif_queuesz(struct blockif_ctxt *bc);
69 int blockif_is_ro(struct blockif_ctxt *bc);
70 int blockif_candelete(struct blockif_ctxt *bc);
71 int blockif_read(struct blockif_ctxt *bc, struct blockif_req *breq);
72 int blockif_write(struct blockif_ctxt *bc, struct blockif_req *breq);
73 int blockif_flush(struct blockif_ctxt *bc, struct blockif_req *breq);
[all …]
/freebsd-12-stable/stand/common/
Dbcache.c84 #define BHASH(bc, blkno) ((blkno) & ((bc)->bcache_nblks - 1)) argument
85 #define BCACHE_LOOKUP(bc, blkno) \ argument
86 ((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-12-stable/contrib/bc/tests/bc/scripts/
Dall.txt1 multiply.bc
2 divide.bc
3 subtract.bc
4 add.bc
5 print.bc
6 parse.bc
7 array.bc
8 atan.bc
9 bessel.bc
10 functions.bc
[all …]
/freebsd-12-stable/contrib/bc/
DREADME.md1 # `bc`
6 This is an implementation of the [POSIX `bc` calculator][12] that implements
7 [GNU `bc`][1] extensions, as well as the period (`.`) extension for the BSD
8 flavor of `bc`.
10 For more information, see this `bc`'s full manual.
12 This `bc` also includes an implementation of `dc` in the same binary, accessible
14 standalone `dc` binary is desired, `bc` can be copied and renamed to `dc`.) The
20 This `bc` also provides `bc`'s math as a library with C bindings, called `bcl`.
26 This `bc` is Free and Open Source Software (FOSS). It is offered under the BSD
31 This `bc` only requires either:
[all …]
DMakefile.in43 BC_HEADERS = include/bc.h
56 BC_LIB = $(GEN_DIR)/lib.bc
62 BC_LIB2 = $(GEN_DIR)/lib2.bc
85 BC = bc
317 @sh tests/stdin.sh bc %%BC_TEST_EXEC%%
320 @sh tests/read.sh bc %%BC_TEST_EXEC%%
325 @sh tests/errors.sh bc %%BC_TEST_EXEC%%
328 @sh tests/other.sh bc $(BC_ENABLE_EXTRA_MATH) %%BC_TEST_EXEC%%
371 @sh tests/history.sh bc 0 %%BC_TEST_EXEC%%
374 @sh tests/history.sh bc 1 %%BC_TEST_EXEC%%
[all …]
D.gitignore8 bin/*bc
9 bin/*bc.exe
13 bc.old
21 manuals/bc.1
22 manuals/bc.1.ronn
23 manuals/bc.1.md
34 timeconst.bc
56 tests/bc/scripts/add.txt
57 tests/bc/scripts/divide.txt
58 tests/bc/scripts/multiply.txt
[all …]
Dconfigure590 bc.banner) bc_default_banner="$_set_default_on" ;;
591 bc.sigint_reset) bc_default_sigint_reset="$_set_default_on" ;;
593 bc.tty_mode) bc_default_tty_mode="$_set_default_on" ;;
595 bc.prompt) bc_default_prompt="$_set_default_on" ;;
698 bc-only) bc_only=1 ;;
801 disable-bc) dc_only=1 ;;
815 help* | bc-only* | dc-only* | coverage* | debug*)
817 disable-bc* | disable-dc* | disable-clean*)
992 bc=1
1004 bc=1
[all …]
Dconfigure.sh590 bc.banner) bc_default_banner="$_set_default_on" ;;
591 bc.sigint_reset) bc_default_sigint_reset="$_set_default_on" ;;
593 bc.tty_mode) bc_default_tty_mode="$_set_default_on" ;;
595 bc.prompt) bc_default_prompt="$_set_default_on" ;;
698 bc-only) bc_only=1 ;;
801 disable-bc) dc_only=1 ;;
815 help* | bc-only* | dc-only* | coverage* | debug*)
817 disable-bc* | disable-dc* | disable-clean*)
992 bc=1
1004 bc=1
[all …]
DNEWS.md6 exists in all versions of `bc`.
17 * Fixed a bug with the `bc` banner and `-q`.
19 * Added a command-line flag (`-z`) to make `bc` and `dc` print leading zeroes on
21 * Added four functions to `lib2.bc` (`plz()`, `plznl()`, `pnlz()`, and
34 The test was one that tested whether `bc` fails gracefully when it can't
41 However, this `bc` uses all of the memory it allocates (at least at page
65 digit was left, something I blindly copied from GNU `bc`, like a fool.
69 allocation is retried. This is to make `bc` and `dc` more resilient to running
75 * Added greatest common divisor and least common multiple to `lib2.bc`.
78 * Fixed multi-digit bugs in `lib2.bc`.
[all …]
/freebsd-12-stable/gnu/usr.bin/grep/tests/
Dspencer1.tests8 0@ab*bc@abc
9 0@ab*bc@abbc
10 0@ab*bc@abbbbc
11 0@ab+bc@abbc
12 1@ab+bc@abc
13 1@ab+bc@abq
14 0@ab+bc@abbbbc
15 0@ab?bc@abbc
16 0@ab?bc@abc
17 1@ab?bc@abbbbc
[all …]
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/regex/data/
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
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
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
Dmeta.in3 a[bc]d & abd abd
8 a\bc &P abc abc
11 a\\bc & a\bc a\bc
/freebsd-12-stable/contrib/bc/gen/
Dbc_help.txt32 * The bc help text.
38 bc is a command-line, arbitrary-precision calculator with a Turing-complete
40 https://git.yzena.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.
73 Run the bc code in "file" and exit. See above as well.
[all …]
/freebsd-12-stable/contrib/bc/manuals/
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 …]
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.yzena.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
88 To cross-compile this `bc`, an appropriate compiler must be present and assigned
[all …]
/freebsd-12-stable/usr.bin/gh-bc/
DMakefile5 PROG= gh-bc
6 PROGNAME= bc
10 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
57 MAN_SRC_BC= bc/N.1
61 MAN_SRC_BC= bc/A.1
106 lib.c: lib.bc Makefile
107 cd ${BCDIR} && sh gen/strgen.sh gen/lib.bc ${.OBJDIR}/lib.c bc_lib bc_lib_name 1 1
[all …]
/freebsd-12-stable/usr.bin/gh-bc/tests/
DMakefile7 TEST_DIR= ${SRCTOP}/contrib/bc
9 TESTSDIR= ${TESTSBASE}/usr.bin/gh-bc
27 FILESbcDIR= ${TESTSDIR}/tests/bc
28 FILESbc!= echo ${TEST_DIR}/tests/bc/*.*
32 FILESbc_errorsDIR= ${TESTSDIR}/tests/bc/errors
33 FILESbc_errors!= echo ${TEST_DIR}/tests/bc/errors/*.*
37 FILESbc_scriptsDIR= ${TESTSDIR}/tests/bc/scripts
38 FILESbc_scripts!= echo ${TEST_DIR}/tests/bc/scripts/*.*
/freebsd-12-stable/lib/libc/regex/
Dregcomp.c120 static bool p_ere_exp(struct parse *p, struct branchc *bc);
122 static int p_branch_eat_delim(struct parse *p, struct branchc *bc);
123 static void p_branch_ins_offset(struct parse *p, struct branchc *bc);
124 static void p_branch_fix_tail(struct parse *p, struct branchc *bc);
125 static bool p_branch_empty(struct parse *p, struct branchc *bc);
126 static bool p_branch_do(struct parse *p, struct branchc *bc);
127 static void p_bre_pre_parse(struct parse *p, struct branchc *bc);
128 static void p_bre_post_parse(struct parse *p, struct branchc *bc);
130 static bool p_simp_re(struct parse *p, struct branchc *bc);
380 p_ere_exp(struct parse *p, struct branchc *bc) in p_ere_exp() argument
[all …]
/freebsd-12-stable/bin/sh/tests/expansion/
Dcmdsubst24.016 check "$LINENO" "$assign_builtin" "a bc d"
18 check "$LINENO" "$assign_pipeline" "a bc d"
22 check "$LINENO" "$splits" "a@bc@d@a@bc@d@a bc d@a bc d"
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/regex/data/att/
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-12-stable/sbin/bsdlabel/
Ddisktab28 :pc#720:oc#0:bc#4096:fc#512:
33 :pc#1440:oc#0:bc#4096:fc#512:
38 :pc#2400:oc#0:bc#4096:fc#512:
43 :pc#2880:oc#0:bc#4096:fc#512:
58 :pc#1600:oc#0:bc#4096:fc#512:
63 :pc#1640:oc#0:bc#4096:fc#512:
68 :pc#2952:oc#0:bc#4096:fc#512:
73 :pc#3444:oc#0:bc#4096:fc#512:
81 :pc#246528:oc#0:bc#4096:fc#512:
178 :pc#2880:oc#0:bc#4096:fc#512:
[all …]
/freebsd-12-stable/contrib/bc/tests/bc/
Dtimeconst.sh47 bc="$1"
50 bc="$testdir/../../bin/bc"
82 nums=$(printf 'for (i = 0; i <= 1000; ++i) { i }\n' | bc)
88 printf '%s\n' "$i" | bc -q "$timeconst" > "$out1"
99 printf '%s\n' "$i" | "$bc" "$@" -q "$timeconst" > "$out2"

12345678910>>...17