Home
last modified time | relevance | path

Searched refs:pb (Results 1 – 25 of 66) sorted by relevance

123

/titanic_41/usr/src/lib/libbc/libc/gen/common/sparc/
H A Dbase_conv.c73 register unsigned *pb; local
76 pb = b;
80 *pb = (t = (*pb * 10000) + carry) & 0xffff;
81 pb++;
88 *pb = (t = (*pb * 10000) + carry) & 0xffff;
89 pb--;
107 register unsigned *pb; local
110 pb = b;
114 *pb = (t = (*pb << 16) | carry) % 10000;
115 pb++;
[all …]
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A D_sprintf_sup.c242 _unpacked_to_big_float(unpacked *pu, _big_float *pb, int *pe) in _unpacked_to_big_float() argument
254 pb->bsignificand[2 * (iz - it)] = pu->significand[it] & 0xffff; in _unpacked_to_big_float()
255 pb->bsignificand[2 * (iz - it) + 1] = pu->significand[it] >> 16; in _unpacked_to_big_float()
258 pb->blength = 2 * iz + 2; in _unpacked_to_big_float()
259 if (pb->bsignificand[0] == 0) { in _unpacked_to_big_float()
260 for (it = 1; it < pb->blength; it++) in _unpacked_to_big_float()
261 pb->bsignificand[it - 1] = pb->bsignificand[it]; in _unpacked_to_big_float()
262 pb->blength--; in _unpacked_to_big_float()
264 *pe = pu->exponent + 1 - 16 * pb->blength; in _unpacked_to_big_float()
265 pb->bexponent = 0; in _unpacked_to_big_float()
[all …]
H A D_base_sup.c192 _big_decimal_to_big_binary(_big_float *pd, _big_float *pb) in _big_decimal_to_big_binary() argument
204 pb->bexponent = 0; in _big_decimal_to_big_binary()
205 pb->blength = 1; in _big_decimal_to_big_binary()
208 pb->bsignificand[0] = 0; in _big_decimal_to_big_binary()
210 pb->bsignificand[0] = pd->bsignificand[id--]; in _big_decimal_to_big_binary()
217 _mul_10000short(pb, (long unsigned) pd->bsignificand[id]); in _big_decimal_to_big_binary()
245 _multiply_base_two(pb, multiplier, (long unsigned) carry); in _big_decimal_to_big_binary()
247 pb->bsignificand[0] |= 1; /* Save lost bits. */ in _big_decimal_to_big_binary()
261 _multiply_base_two(pb, multiplier, (long unsigned) carry); in _big_decimal_to_big_binary()
265 _display_big_float(pb, 2); in _big_decimal_to_big_binary()
[all …]
H A Ddouble_decim.c220 _big_float *pb, b, d; in binary_to_decimal_fraction() local
255 _big_float_times_power(&b, 10, tenpower, tensig, &pb); in binary_to_decimal_fraction()
256 switch ((unsigned int)pb) { in binary_to_decimal_fraction()
275 if (pb != &b) in binary_to_decimal_fraction()
278 _display_big_float(pb, 2); in binary_to_decimal_fraction()
283 if (pb->bexponent <= -16) { in binary_to_decimal_fraction()
285 excess = (-pb->bexponent) / 16; in binary_to_decimal_fraction()
289 for (i = 0; (i < excess) && (pb->bsignificand[i] == 0); i++); in binary_to_decimal_fraction()
291 pb->bsignificand[excess] |= 1; /* Sticky bit for in binary_to_decimal_fraction()
293 for (i = excess; i < pb->blength; i++) in binary_to_decimal_fraction()
[all …]
H A Ddecimal_bin.c34 decimal_to_binary_integer(ds, ndigs, nzeros, nsig, pb) in decimal_to_binary_integer() argument
39 _big_float *pb; /* Pointer to big_float to receive result. */
57 _big_decimal_to_big_binary(&d, pb);
59 _big_float_times_power(pb, 10, (int) nzout, (int) nsig, &pbout);
65 pb->bexponent = 0x7fff;
77 if (pbout != pb)
80 _display_big_float(pb, 2);
82 if (pbout != pb) { /* We don't really need such
90 pb->bsignificand[i] = pbout->bsignificand[i + pbout->blength - allweneed];
93 pb->bsignificand[0] |= 1; /* Stick discarded bits. */
[all …]
/titanic_41/usr/src/cmd/acct/
H A Dacctprc.c50 struct ptmp pb; variable
81 pb.pt_uid = ab.ac_uid; in main()
82 CPYN(pb.pt_name, NULL); in main()
95 pb.pt_cpu[0] = (double)stime * (double)elaps[0] / etime; in main()
96 pb.pt_cpu[1] = (stime > pb.pt_cpu[0])? stime - pb.pt_cpu[0] : 0; in main()
97 pb.pt_cpu[1] = stime - pb.pt_cpu[0]; in main()
99 pb.pt_mem = (mem + stime - 1) / stime; in main()
101 pb.pt_mem = 0; /* unlikely */ in main()
102 enter(&pb); in main()
134 memk = KCORE(pb.pt_mem); in enter()
H A Dacctprc1.c52 struct ptmp pb; variable
125 pb.pt_uid = ab.ac_uid; in main()
126 CPYN(pb.pt_name, getname(ab.ac_uid, ab.ac_tty, ab.ac_btime)); in main()
139 pb.pt_cpu[0] = (double)stime * (double)elaps[0] / etime; in main()
140 pb.pt_cpu[1] = (stime > pb.pt_cpu[0])? stime - pb.pt_cpu[0] : 0; in main()
141 pb.pt_cpu[1] = stime - pb.pt_cpu[0]; in main()
143 pb.pt_mem = (mem + stime - 1) / stime; in main()
145 pb.pt_mem = 0; /* unlikely */ in main()
147 pb.pt_uid, in main()
149 pb.pt_name, in main()
[all …]
H A Dacctprc2.c45 struct ptmp pb; variable
67 &pb.pt_uid, in main()
68 pb.pt_name, in main()
69 &pb.pt_cpu[0], &pb.pt_cpu[1], in main()
70 &pb.pt_mem) != EOF) in main()
71 enter(&pb); in main()
108 memk = KCORE(pb.pt_mem); in enter()
/titanic_41/usr/src/uts/common/io/lvm/trans/
H A Dmdtrans.c111 buf_t *pb; in trans_done_shadow() local
115 pb = ps->ps_bp; in trans_done_shadow()
120 pb->b_flags |= B_ERROR; in trans_done_shadow()
121 pb->b_error = bp->b_error; in trans_done_shadow()
135 buf_t *pb, /* primary buffer */ in shadow_debug() argument
148 sb = bioclone(pb, 0, pb->b_bcount, md_dev64_to_dev(un->un_s_dev), in shadow_debug()
149 pb->b_blkno, trans_done_shadow, sb, KM_NOSLEEP); in shadow_debug()
558 struct buf *pb; in trans_error() local
561 pb = ps->ps_bp; in trans_error()
567 if (pb->b_flags & B_READ) in trans_error()
[all …]
/titanic_41/usr/src/cmd/devfsadm/
H A Ddevpolicy.c77 const devplcysys_t *pb = b; in qcmp() local
83 if (pb->dps_maj == DEVPOLICY_DFLT_MAJ) in qcmp()
86 if (pa->dps_maj > pb->dps_maj) in qcmp()
88 else if (pa->dps_maj < pb->dps_maj) in qcmp()
92 wildb = strchr(pb->dps_minornm, '*') != NULL; in qcmp()
100 return (strcmp(pa->dps_minornm, pb->dps_minornm)); in qcmp()
103 return ((int)(strlen(pb->dps_minornm) - strlen(pa->dps_minornm))); in qcmp()
/titanic_41/usr/src/uts/common/io/lvm/mirror/
H A Dmirror.c2768 struct buf *pb; in finish_error() local
2773 pb = ps->ps_bp; in finish_error()
2796 pb->b_flags |= B_ERROR; in finish_error()
2797 md_kstat_done(ui, pb, (ps->ps_flags & MD_MPS_WRITE_AFTER_READ)); in finish_error()
2800 md_biodone(pb); in finish_error()
2822 md_kstat_done(ui, pb, (ps->ps_flags & MD_MPS_WRITE_AFTER_READ)); in finish_error()
2825 (void) md_mirror_strategy(pb, new_str_flags, NULL); in finish_error()
2829 pb->b_flags |= B_ERROR; in finish_error()
2830 md_kstat_done(ui, pb, (ps->ps_flags & MD_MPS_WRITE_AFTER_READ)); in finish_error()
2833 md_biodone(pb); in finish_error()
[all …]
/titanic_41/usr/src/lib/libc/port/fp/
H A Ddouble_decim.c83 __big_binary_to_big_decimal(_big_float *pb, int nsig, _big_float **ppd, in __big_binary_to_big_decimal() argument
93 if (pb->bexponent + ((pb->blength - 1) << 4) >= 0) { in __big_binary_to_big_decimal()
94 carry = pb->bsignificand[pb->blength - 1]; in __big_binary_to_big_decimal()
98 for (i = pb->blength - 2; i >= 0 && in __big_binary_to_big_decimal()
99 pb->bexponent + (i << 4) >= 0; i--) { in __big_binary_to_big_decimal()
101 carry = pb->bsignificand[i]; in __big_binary_to_big_decimal()
116 i = pb->blength - 1; in __big_binary_to_big_decimal()
121 if (i >= 0 && pb->bexponent + (i << 4) > -16) { in __big_binary_to_big_decimal()
122 s = pb->bexponent + (i << 4) + 16; in __big_binary_to_big_decimal()
124 carry = pb->bsignificand[i] >> (16 - s); in __big_binary_to_big_decimal()
[all …]
H A Ddecimal_bin.c57 _big_float *pb; in __big_decimal_to_big_binary() local
61 pb = *ppb; in __big_decimal_to_big_binary()
65 pb->bsignificand[0] = pd->bsignificand[pd->blength - 1]; in __big_decimal_to_big_binary()
72 carry += (unsigned int)pb->bsignificand[j] in __big_decimal_to_big_binary()
74 pb->bsignificand[j] = carry & 0xffff; in __big_decimal_to_big_binary()
78 pb->bsignificand[j++] = carry; in __big_decimal_to_big_binary()
95 carry += (unsigned int)pb->bsignificand[j] in __big_decimal_to_big_binary()
97 pb->bsignificand[j] = carry & 0xffff; in __big_decimal_to_big_binary()
104 carry += (unsigned int)pb->bsignificand[j] in __big_decimal_to_big_binary()
106 pb->bsignificand[j] = carry & 0xffff; in __big_decimal_to_big_binary()
[all …]
/titanic_41/usr/src/lib/libc/sparc/fp/
H A D_Q_cplx_lr_div_ix.c46 _Q_cplx_lr_div_ix(const long double *pb, const long double _Complex *w) argument
51 _Q_cplx_lr_div_ix(long double _Complex *v, const long double *pb,
57 b = *pb;
H A D_Q_cplx_div_ix.c81 _Q_cplx_div_ix(const long double *pb, const long double _Complex *w) argument
86 _Q_cplx_div_ix(long double _Complex *v, const long double *pb,
97 b = *pb;
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_pass.c112 const smb_passid_t *pb = (smb_passid_t *)b; in smb_pkey_cmp() local
125 if (pa->uid < pb->uid) in smb_pkey_cmp()
127 if (pa->uid > pb->uid) in smb_pkey_cmp()
129 if (pa->zoneid < pb->zoneid) in smb_pkey_cmp()
131 if (pa->zoneid > pb->zoneid) in smb_pkey_cmp()
133 dsrv = u8_strcmp(pa->srvdom, pb->srvdom, 0, in smb_pkey_cmp()
139 duser = u8_strcmp(pa->username, pb->username, 0, in smb_pkey_cmp()
/titanic_41/usr/src/lib/libnisdb/
H A Dldap_util.c469 __nis_buffer_t pb = {0, 0}; variable
477 pb.len = vp2buf(msg, &pb.buf, pb.len, fmt, ap); in p2buf()
532 bc2buf(msg, buf, len, &pb); in c2buf()
538 sbc2buf(msg, buf, len, &pb); in sc2buf()
547 int maxtry = MAXTRY, len = pb.len; in printbuf()
549 if (pb.buf != 0) { in printbuf()
553 tmp = write(1, pb.buf, len); in printbuf()
562 free(pb.buf); in printbuf()
563 pb.buf = 0; in printbuf()
565 pb.len = 0; in printbuf()
/titanic_41/usr/src/lib/libdll/common/
H A Ddllscan.c43 char* pb; \
264 if (!(scan->pb = vmnewof(vm, 0, char, t - (char*)name, 2))) in dllsopen()
266 memcpy(scan->pb, name, t - (char*)name); in dllsopen()
380 if (!scan->pb) in dllsread()
381 scan->pb = pathbin(); in dllsread()
387 scan->pb = scan->pe; in dllsread()
389 for (p = scan->pp = scan->pb; *p && *p != ':'; p++) in dllsread()
394 scan->off = sfprintf(scan->tmp, "%-.*s", scan->pe - scan->pb, scan->pb); in dllsread()
396 scan->off = sfprintf(scan->tmp, "%-.*s/%s", scan->pp - scan->pb, scan->pb, *scan->sp); in dllsread()
/titanic_41/usr/src/uts/common/io/lvm/stripe/
H A Dstripe.c500 struct buf *pb = ps->ps_bp; in stripe_error() local
503 md_dev64_t md_dev = md_expldev(pb->b_edev); in stripe_error()
506 if (pb->b_flags & B_READ) { in stripe_error()
521 pb->b_flags |= B_ERROR; in stripe_error()
523 md_kstat_done(ui, pb, 0); in stripe_error()
525 md_biodone(pb); in stripe_error()
535 struct buf *pb; in stripe_done() local
543 pb = ps->ps_bp; in stripe_done()
548 pb->b_error = cb->b_error; in stripe_done()
573 md_kstat_done(ui, pb, 0); in stripe_done()
[all …]
/titanic_41/usr/src/cmd/vgrind/
H A Dvgrindefs.src25 :pb=^\d(space\d\p\drep)|(\p\dis|inline|public\dbeginproc):\
38 :pb=(^\d?procedure|function|program\d\p\d|\(|;|\:)|(=\d?record\d):\
48 :pb=^\d?*?\d?\p\d?\(\a?\)(\d|{):bb={:be=}:cb=/*:ce=*/:sb=":se=\e":lb=':\
61 :pb=(;|^)\d?\p\(\)(\d|{):\
81 :pb=^\p\::bb=\::be=;:cb=/*:ce=*/:sb=":se=\e":\
90 :pb=^\d?procedure\d\p\d?\(\a?\):\
101 :pb=(subroutine|function)\d\p\d?\(\a?\):\
110 :pb=(^\d?(procedure|function|module)\d\p\d|\(|;|\:):\
129 :pb=^\d?*?\d?\p\d?\(\a?\)(\d|{):bb={:be=}:cb=/*:ce=*/:ab=//:\
140 :pb=(function|subroutine|program)\d\p\d?\(\a?\):\
[all …]
/titanic_41/usr/src/common/mpi/
H A Dmpmontg.c133 mp_digit *pb; in s_mp_mul_mont() local
153 pb = MP_DIGITS(b); in s_mp_mul_mont()
154 s_mpv_mul_d(MP_DIGITS(a), useda, *pb++, MP_DIGITS(c)); in s_mp_mul_mont()
162 mp_digit b_i = *pb++; in s_mp_mul_mont()
/titanic_41/usr/src/cmd/mdb/common/modules/dtrace/
H A Ddof.c835 dof_probe_t *pb; in dof_sect_provider() local
900 pb = (dof_probe_t *)(uintptr_t)(p + in dof_sect_provider()
906 strtab + pb->dofpr_func, in dof_sect_provider()
907 strtab + pb->dofpr_name); in dof_sect_provider()
910 mdb_printf("addr: %p\n", (ulong_t)pb->dofpr_addr); in dof_sect_provider()
912 for (j = 0; j < pb->dofpr_noffs; j++) { in dof_sect_provider()
914 offs[pb->dofpr_offidx + j]); in dof_sect_provider()
921 if (pb->dofpr_nenoffs != 0) in dof_sect_provider()
924 for (j = 0; j < pb->dofpr_nenoffs; j++) { in dof_sect_provider()
926 enoffs[pb->dofpr_enoffidx + j]); in dof_sect_provider()
[all …]
/titanic_41/usr/src/common/lzma/
H A DLzFind.c328 const Byte *pb = cur - delta; in Hc_GetMatchesSpec() local
330 if (pb[maxLen] == cur[maxLen] && *pb == *cur) in Hc_GetMatchesSpec()
334 if (pb[len] != cur[len]) in Hc_GetMatchesSpec()
365 const Byte *pb = cur - delta; in GetMatchesSpec1() local
367 if (pb[len] == cur[len]) in GetMatchesSpec1()
369 if (++len != lenLimit && pb[len] == cur[len]) in GetMatchesSpec1()
371 if (pb[len] != cur[len]) in GetMatchesSpec1()
385 if (pb[len] < cur[len]) in GetMatchesSpec1()
419 const Byte *pb = cur - delta; in SkipMatchesSpec() local
421 if (pb[len] == cur[len]) in SkipMatchesSpec()
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/largest_pool/
H A Dlargest_pool.cfg33 export VOLSIZES=${VOLSIZES-"2pb 5pb 10pb 2eb 5eb 8eb 9eb"}
/titanic_41/usr/src/cmd/biosdev/
H A Dbiosdev.c263 pcibdf_t pb; in search_tree_match_pcibdf() local
264 pb.busnum = bus; in search_tree_match_pcibdf()
265 pb.devnum = dev; in search_tree_match_pcibdf()
266 pb.funcnum = fn; in search_tree_match_pcibdf()
267 pb.di_node = DI_NODE_NIL; in search_tree_match_pcibdf()
269 (void) di_walk_node(node, DI_WALK_CLDFIRST, &pb, i_match_pcibdf); in search_tree_match_pcibdf()
270 return (pb.di_node); in search_tree_match_pcibdf()

123