| /src/contrib/bc/tests/bc/scripts/ ! |
| H A D | all.txt | 1 multiply_00100.bc 2 multiply_00200.bc 3 multiply_00300.bc 4 multiply_00400.bc 5 multiply_00500.bc 6 multiply_00600.bc 7 multiply_00700.bc 8 multiply_00800.bc 9 multiply_00900.bc 10 multiply_01000.bc [all …]
|
| /src/usr.sbin/bhyve/ ! |
| H A D | block_if.c | 135 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 D | block_if.h | 69 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 …]
|
| /src/stand/common/ ! |
| H A D | bcache.c | 83 #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 …]
|
| /src/sys/sys/ ! |
| H A D | blockcount.h | 42 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 …]
|
| /src/contrib/bc/ ! |
| H A D | README.md | 1 # `bc` 9 This is an implementation of the [POSIX `bc` calculator][12] that implements 10 [GNU `bc`][1] extensions, as well as the period (`.`) extension for the BSD 11 flavor of `bc`. 13 For more information, see this `bc`'s full manual. 15 This `bc` also includes an implementation of `dc` in the same binary, accessible 17 standalone `dc` binary is desired, `bc` can be copied and renamed to `dc`.) The 23 This `bc` also provides `bc`'s math as a library with C bindings, called `bcl`. 29 This `bc` is Free and Open Source Software (FOSS). It is offered under the BSD 34 This `bc` only requires either: [all …]
|
| H A D | Makefile.in | 54 BC_HEADERS = $(INCDIR)/bc.h 67 BC_LIB = $(GENDIR)/lib.bc 73 BC_LIB2 = $(GENDIR)/lib2.bc 95 BC = bc 299 $(MANPAGE) bc 322 @$(RM) -f $(ROOTDIR)/benchmarks/bc/*.txt 334 …@if [ $(BC_ENABLED) -ne 0 ]; then $(TESTSDIR)/all.sh -n bc $(BC_ENABLE_EXTRA_MATH) 1 $(GENERATE_TE… 341 @$(RM) -f $(TESTSDIR)/bc/parse_*.txt $(TESTSDIR)/bc/parse_*_results.txt 342 @$(RM) -f $(TESTSDIR)/bc/print_*.txt $(TESTSDIR)/bc/print_*_results.txt 343 @$(RM) -f $(TESTSDIR)/bc/bessel.txt $(TESTSDIR)/bc/bessel_results.txt [all …]
|
| H A D | build.gaml | 36 project: @com.gavinhoward.bc 84 // This is the predefined build to match the GNU bc/dc. 108 bc/default_banner: true 109 bc/default_sigint_reset: true 111 bc/default_tty_mode: true 113 bc/default_prompt: @tty_mode 115 bc/default_expr_exit: false 117 bc/default_digit_clamp: true 127 bc/default_banner: true 128 bc/default_sigint_reset: true [all …]
|
| H A D | NEWS.md | 43 The first bug is that `bc`/`dc` will exit on macOS when the terminal is resized. 57 The bug was that `bc` attempted to jump out when flushing `stdout` on exit, but 71 This is a production release to fix problems in the `bc` manual. 142 This is a production release that fixes a `bc` dependency loop for minimal 168 `tests/bc/scripts/timeconst.bc` doesn't exist. This should only affect 177 This is a production release that moves `bc` to <https://git.gavinhoward.com>. 188 parameter had the same name as the array whose element was used, `bc` would grab 202 * A crash when `bc` and `dc` are built using editline, but history is not 221 This is a production release that fixes a discrepancy from the `bc` standard, 224 The discrepancy from the `bc` standard was with regards to the behavior of the [all …]
|
| /src/contrib/netbsd-tests/lib/libc/regex/data/ ! |
| H A D | startend.in | 4 [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 D | backref.in | 8 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 D | subexp.in | 13 (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 D | meta.in | 3 a[bc]d & abd abd 8 a\bc &CP EESCAPE 11 a\\bc & a\bc a\bc
|
| /src/contrib/bc/tests/bc/ ! |
| H A D | timeconst.sh | 61 bc="$1" 63 check_exec_arg "$bc" 65 bc="$testdir/../../bin/bc" 66 check_exec_arg "$bc" 100 nums=$(printf 'for (i = 0; i <= 1000; ++i) { i }\n' | bc) 106 printf '%s\n' "$i" | bc -q "$timeconst" > "$out1" 117 printf '%s\n' "$i" | "$bc" "$@" -q "$timeconst" > "$out2"
|
| /src/usr.bin/gh-bc/ ! |
| H A D | Makefile | 3 PROG= gh-bc 4 PROGNAME= bc 9 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 15 MAN= bc.1 dc.1 17 LINKS= ${BINDIR}/bc ${BINDIR}/dc 32 NLSNAME= bc 76 MAN_SRC_BC= bc/N.1 80 MAN_SRC_BC= bc/A.1 116 lib.c: lib.bc Makefile 117 cd ${BCDIR} && sh gen/strgen.sh gen/lib.bc ${.OBJDIR}/lib.c 0 bc_lib bc_lib_name "" 1 [all …]
|
| /src/usr.bin/gh-bc/tests/ ! |
| H A D | Makefile | 5 TEST_DIR= ${SRCTOP}/contrib/bc 7 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/*.*
|
| /src/bin/sh/tests/expansion/ ! |
| H A D | cmdsubst24.0 | 15 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"
|
| /src/lib/libc/regex/ ! |
| H A D | regcomp.c | 112 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 …]
|
| /src/contrib/bc/manuals/ ! |
| H A D | build.md | 3 This `bc` attempts to be as portable as possible. It can be built on any 12 The general form of configuring, building, and installing this `bc` is as 45 For releases, Windows builds of `bc`, `dc`, and `bcl` are available for download 48 However, if you wish to build it yourself, this `bc` can be built using Visual 60 In Visual Studio, open up the solution file (`bc.sln` for `bc`, or `bcl.sln` for 68 To build `bc`, run the following from the root directory: 71 msbuild -property:Configuration=<config> vs/bc.sln 86 Building `bc`, `dc`, and `bcl` (the library) is more complex than on Windows 95 For example, if the source is in `bc`, the build should happen in `build`, then 99 ../bc/configure.sh [all …]
|
| H A D | algorithms.md | 3 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 …]
|
| /src/contrib/bc/gen/ ! |
| H A D | bc_help.txt | 32 * The bc help text. 38 bc is a command-line, arbitrary-precision calculator with a Turing-complete 40 https://github.com/gavinhoward/bc/tree/%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. [all …]
|
| /src/contrib/netbsd-tests/lib/libc/regex/data/att/ ! |
| H A D | basic.dat | 26 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 …]
|
| /src/sbin/bsdlabel/ ! |
| H A D | disktab | 27 :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 …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send/ ! |
| H A D | zfs_send_006_pos.ksh | 49 return=$(echo "$PERCENT * $value" | bc) 50 return=$(echo "$return / 100" | bc) 68 total_size=$(echo "$total_size * $block_count" | bc) 78 typeset refer_diff=$(echo "$refer_size - $estimate_size" | bc) 79 refer_diff=$(echo "$refer_diff / 1" | bc) 81 typeset file_diff=$(echo "$file_size - $estimate_size" | bc) 82 file_diff=$(echo "$file_diff / 1" | bc) 152 refer_size=$(echo "$refer_size - $deduct_size" | bc) 193 refer_size=$(echo "$refer_size * 3" | bc)
|
| /src/contrib/bc/project/ ! |
| H A D | issue10.md | 8 $ bc -l 30 I'm not seeing the behavior. Can you send me the output of `bc -v`? 42 That's on FreeBSD with the base system's bc, built with the default base compiler. 47 $ bc -v 48 bc 4.0.1 50 Report bugs at: https://git.yzena.com/gavin/bc 55 Your bc is not default on 12.X yet but I enabled it with WITH_GH_BC=yes in /etc/src.conf to try it … 60 $ bc -v 61 bc 4.0.0 63 Report bugs at: https://git.yzena.com/gavin/bc [all …]
|