| /netbsd-src/usr.bin/menuc/ |
| H A D | avl.c | 102 new_id->balance = 0; in insert_id() 113 (*root)->balance--; in insert_id() 115 switch ((*root)->balance) in insert_id() 124 if (B->balance <= 0) in insert_id() 130 A->balance = 0; in insert_id() 131 B->balance = 0; in insert_id() 141 switch ((*root)->balance) in insert_id() 144 A->balance = 1; in insert_id() 145 B->balance = 0; in insert_id() 148 A->balance = 0; in insert_id() [all …]
|
| H A D | mdb.h | 48 short balance; /* For the balanced tree. */ member
|
| /netbsd-src/external/bsd/bc/dist/ |
| H A D | util.c | 407 new_id->balance = 0; in insert_id_rec() 418 (*root)->balance --; in insert_id_rec() 420 switch ((*root)->balance) in insert_id_rec() 429 if (B->balance <= 0) in insert_id_rec() 435 A->balance = 0; in insert_id_rec() 436 B->balance = 0; in insert_id_rec() 446 switch ((*root)->balance) in insert_id_rec() 449 A->balance = 1; in insert_id_rec() 450 B->balance = 0; in insert_id_rec() 453 A->balance = 0; in insert_id_rec() [all …]
|
| H A D | bcdefs.h | 181 short balance; /* For the balanced tree. */ member
|
| /netbsd-src/external/bsd/openldap/dist/libraries/libldap/ |
| H A D | filter.c | 157 int balance, escape; in find_right_paren() local 159 balance = 1; in find_right_paren() 161 while ( *s && balance ) { in find_right_paren() 164 balance++; in find_right_paren() 166 balance--; in find_right_paren() 172 if ( balance ) s++; in find_right_paren() 335 int parens, balance, escape; in ldap_pvt_put_filter() local 433 balance = 1; in ldap_pvt_put_filter() 437 while ( *next && balance ) { in ldap_pvt_put_filter() 440 balance++; in ldap_pvt_put_filter() [all …]
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgrep/ |
| H A D | kwset.c | 58 char balance; /* Difference in depths of subtrees. */ member 188 link->balance = 0; in kwsincr() 197 while (depth && !links[depth]->balance) in kwsincr() 200 --links[depth]->balance; in kwsincr() 202 ++links[depth]->balance; in kwsincr() 207 if (depth && ((dirs[depth] == L && --links[depth]->balance) in kwsincr() 208 || (dirs[depth] == R && ++links[depth]->balance))) in kwsincr() 210 switch (links[depth]->balance) in kwsincr() 218 t->balance = r->balance = 0; in kwsincr() 224 l->balance = t->balance != 1 ? 0 : -1; in kwsincr() [all …]
|
| /netbsd-src/external/gpl2/grep/dist/src/ |
| H A D | kwset.c | 58 char balance; /* Difference in depths of subtrees. */ member 188 link->balance = 0; in kwsincr() 197 while (depth && !links[depth]->balance) in kwsincr() 200 --links[depth]->balance; in kwsincr() 202 ++links[depth]->balance; in kwsincr() 207 if (depth && ((dirs[depth] == L && --links[depth]->balance) in kwsincr() 208 || (dirs[depth] == R && ++links[depth]->balance))) in kwsincr() 210 switch (links[depth]->balance) in kwsincr() 218 t->balance = r->balance = 0; in kwsincr() 224 l->balance = t->balance != 1 ? 0 : -1; in kwsincr() [all …]
|
| /netbsd-src/usr.bin/audio/record/ |
| H A D | record.c | 65 static int balance; variable 108 decode_int(optarg, &balance); in main() 109 if (balance < 0 || balance > 63) in main() 282 SETINFO2 (balance, balance) in main()
|
| /netbsd-src/usr.bin/audio/play/ |
| H A D | play.c | 65 static int balance; variable 94 decode_int(optarg, &balance); in main() 95 if (balance < 0 || balance > 64) in main() 530 if (balance) in audioctl_write_fromhdr() 531 info.play.balance = balance; in audioctl_write_fromhdr()
|
| /netbsd-src/lib/libossaudio/ |
| H A D | oss_dsp.c | 393 INTARG = get_vol(tmpinfo.play.gain, tmpinfo.play.balance); in _oss_dsp_ioctl() 402 INTARG = get_vol(tmpinfo.record.gain, tmpinfo.record.balance); in _oss_dsp_ioctl() 455 get_vol(u_int gain, u_char balance) in get_vol() argument 459 if (balance == AUDIO_MID_BALANCE) { in get_vol() 461 } else if (balance < AUDIO_MID_BALANCE) { in get_vol() 463 r = (balance * gain) / AUDIO_MID_BALANCE; in get_vol() 466 l = ((AUDIO_RIGHT_BALANCE - balance) * gain) in get_vol() 488 prinfo->balance = AUDIO_MID_BALANCE; in set_vol() 491 prinfo->balance = AUDIO_RIGHT_BALANCE - in set_vol() 495 prinfo->balance = (AUDIO_MID_BALANCE * rgain) / lgain; in set_vol()
|
| /netbsd-src/external/cddl/osnet/dist/common/avl/ |
| H A D | avl.c | 303 avl_rotation(avl_tree_t *tree, avl_node_t *node, int balance) in avl_rotation() argument 305 int left = !(balance < 0); /* when balance = -2, left will be 0 */ in avl_rotation() 307 int left_heavy = balance >> 1; in avl_rotation() 448 balance = AVL_XBALANCE(gchild); in avl_rotation() 450 AVL_SETBALANCE(child, (balance == right_heavy ? left_heavy : 0)); in avl_rotation() 455 AVL_SETBALANCE(node, (balance == left_heavy ? right_heavy : 0)); in avl_rotation()
|
| /netbsd-src/usr.bin/msgc/ |
| H A D | msgdb.h | 47 short balance; member
|
| /netbsd-src/tests/dev/audio/ |
| H A D | audiotest.c | 5665 get_changeable_balance(int fd, int *balance, const char *dir, int offset) in get_changeable_balance() argument 5700 balance[0] = left; in get_changeable_balance() 5701 balance[1] = -1; in get_changeable_balance() 5703 dir, balance[0]); in get_changeable_balance() 5705 balance[0] = left; in get_changeable_balance() 5706 balance[1] = right; in get_changeable_balance() 5708 dir, balance[0], balance[1]); in get_changeable_balance() 5743 printf(" > old play.balance = %d\n", oai.play.balance); in DEF() 5745 printf(" > old record.balance = %d\n", oai.record.balance); in DEF() 5768 offsetof(struct audio_info, play.balance)); in DEF() [all …]
|
| /netbsd-src/bin/csh/ |
| H A D | set.c | 60 static void balance(struct varent *, int, int); 532 balance(p, f, 0); in setq() 660 balance(pp, f, 1); in unsetv1() 749 balance(struct varent *p, int f, int d) in balance() function
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | rrl.c | 512 int balance, rate; in response_balance() local 521 balance = e->responses + age * rate; in response_balance() 522 if (balance > rate) { in response_balance() 523 balance = rate; in response_balance() 525 return (balance); in response_balance()
|
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | rrl.c | 490 int balance, rate; in get_rate() 499 balance = e->responses + age * rate; in get_rate() 500 if (balance > rate) { in get_rate() 501 balance = rate; in get_rate() 503 return balance; in get_rate() 512 int balance, rate; response_balance() local
|
| /netbsd-src/usr.bin/audio/ctl/ |
| H A D | ctl.c | 109 { "play.balance", &info.play.balance, UCHAR, 0 }, 128 { "record.balance", &info.record.balance, UCHAR, 0 },
|
| /netbsd-src/sys/compat/sunos/ |
| H A D | sunos.h | 141 u_char balance; member
|
| /netbsd-src/sys/dev/audio/ |
| H A D | audio.c | 7301 if (SPECIFIED_CH(ai->play.balance)) in audio_file_setinfo() 7302 SPRINTF(buf, ",play.balance=%d", ai->play.balance); in audio_file_setinfo() 7303 if (SPECIFIED_CH(ai->record.balance)) in audio_file_setinfo() 7304 SPRINTF(buf, ",record.balance=%d", ai->record.balance); in audio_file_setinfo() 7681 if (SPECIFIED(newpi->gain) || SPECIFIED_CH(newpi->balance)) { in audio_hw_setinfo() 7685 oldpi->balance = pbalance; in audio_hw_setinfo() 7690 if (SPECIFIED_CH(newpi->balance)) in audio_hw_setinfo() 7691 pbalance = newpi->balance; in audio_hw_setinfo() 7703 if (SPECIFIED(newri->gain) || SPECIFIED_CH(newri->balance)) { in audio_hw_setinfo() 7707 oldri->balance = rbalance; in audio_hw_setinfo() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/ |
| H A D | kernighan_ritchie.d | 398 immutable balance = root.size - actualBytes; in allocate() local 399 if (balance >= Node.sizeof) in allocate() 403 newRoot.size = balance; in allocate()
|
| /netbsd-src/external/bsd/file/dist/magic/magdir/ |
| H A D | ruby | 41 # Looks for function definition to balance python magic
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | ggc-common.c | 912 size_t balance = get_balance (); in dump() local 917 SIZE_AMOUNT (balance), get_percent (balance, total.get_balance ()), in dump()
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/building_blocks/ |
| H A D | kernighan_ritchie.d | 413 immutable balance = root.size - actualBytes; in allocate() local 414 if (balance >= Node.sizeof) in allocate() 418 newRoot.size = balance; in allocate()
|
| /netbsd-src/external/bsd/pcc/dist/pcc/arch/i86/ |
| H A D | TODO | 40 to short etc. How to balance compilers tendancy to allocate AL, AH, etc
|
| /netbsd-src/sys/sys/ |
| H A D | audioio.h | 67 u_char balance; /* stereo channel balance */ member
|