Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/libbc/libc/gen/common/
H A D_Qfpack.c60 round(pu) in round() argument
61 unpacked *pu; in round()
68 sr = pu->sticky|pu->rounded;
75 increment = pu->rounded;
81 increment = (pu->sign == 0) & (sr != 0);
84 increment = (pu->sign != 0) & (sr != 0);
88 pu->significand[3]++;
89 if (pu->significand[3] == 0) {
90 pu->significand[2]++;
91 if (pu->significand[2] == 0) {
[all …]
H A D_Qfunpack.c34 unpackinteger(pu, x) in unpackinteger() argument
35 unpacked *pu; /* unpacked result */ in unpackinteger()
39 pu->sticky = pu->rounded = 0;
41 pu->sign = 0;
42 pu->fpclass = fp_zero;
44 (*pu).sign = x < 0;
45 (*pu).fpclass = fp_normal;
46 (*pu).exponent = INTEGER_BIAS;
48 (*pu).significand[0] = ux>>15;
49 (*pu).significand[1] = (ux&0x7fff)<<17;
[all …]
H A Dpack_float.c31 _fp_rightshift(pu, n) in _fp_rightshift() argument
32 unpacked *pu; in _fp_rightshift()
41 for (i = 0; (pu->significand[i] == 0) && (i < UNPACKED_SIZE); i++);
43 pu->fpclass = fp_zero;
47 pu->significand[i] = 0;
48 pu->significand[UNPACKED_SIZE - 1] = 1;
53 if (pu->significand[UNPACKED_SIZE - 1] != 0)
54 pu->significand[UNPACKED_SIZE - 2] |= 1;
56 pu->significand[i + 1] = pu->significand[i];
57 pu->significand[0] = 0;
[all …]
H A D_Qfutility.c35 fpu_normalize(pu) in fpu_normalize() argument
36 unpacked *pu; in fpu_normalize()
45 u0 = pu->significand[0];
46 u1 = pu->significand[1];
47 u2 = pu->significand[2];
48 u3 = pu->significand[3];
49 if ((*pu).fpclass == fp_normal) {
51 (*pu).fpclass = fp_zero;
56 (*pu).exponent = (*pu).exponent - 32;
63 (*pu).exponent += n;
[all …]
H A D_unpack_dble.c33 _fp_normalize(unpacked *pu) in _fp_normalize() argument
39 if ((*pu).fpclass == fp_normal) { in _fp_normalize()
40 for (nlzwords = 0; (pu->significand[nlzwords] == 0) && (nlzwords < UNPACKED_SIZE); nlzwords++); in _fp_normalize()
42 (*pu).fpclass = fp_zero; in _fp_normalize()
47 pu->significand[i] = pu->significand[i + nlzwords]; in _fp_normalize()
49 pu->significand[i] = 0; in _fp_normalize()
50 pu->exponent -= 32 * nlzwords; in _fp_normalize()
52 for (; pu->significand[UNPACKED_SIZE - 1 - nlzwords] == 0; nlzwords++); in _fp_normalize()
56 t = pu->significand[0]; in _fp_normalize()
65 pu->exponent -= nlzbits; in _fp_normalize()
[all …]
H A Dunpack_float.c80 _unpack_single(unpacked *pu, single *px) in _unpack_single() argument
86 (*pu).sign = x.f.msw.sign; in _unpack_single()
88 pu->significand[i] = 0; in _unpack_single()
91 pu->fpclass = fp_zero; in _unpack_single()
94 pu->fpclass = fp_normal; in _unpack_single()
95 pu->exponent = -SINGLE_BIAS; in _unpack_single()
96 pu->significand[0] = x.f.msw.significand << 9; in _unpack_single()
97 _fp_normalize(pu); in _unpack_single()
102 pu->fpclass = fp_infinity; in _unpack_single()
106 pu->fpclass = fp_quiet; in _unpack_single()
[all …]
H A D_base_sup.c270 _big_binary_to_unpacked(_big_float *pb, unpacked *pu) in _big_binary_to_unpacked() argument
283 pu->significand[iu++] = pb->bsignificand[ib] << 16 | pb->bsignificand[ib - 1]; in _big_binary_to_unpacked()
288 pu->significand[iu++] = pb->bsignificand[ib] << 16; in _big_binary_to_unpacked()
290 pu->significand[iu] = 0; in _big_binary_to_unpacked()
296 pu->significand[UNPACKED_SIZE - 1] |= 1; /* Stick lsb if nonzero in _big_binary_to_unpacked()
300 pu->exponent = 16 * pb->blength + pb->bexponent - 1; in _big_binary_to_unpacked()
301 _fp_normalize(pu); in _big_binary_to_unpacked()
305 _display_unpacked(pu); in _big_binary_to_unpacked()
H A D_sprintf_sup.c242 _unpacked_to_big_float(unpacked *pu, _big_float *pb, int *pe) in _unpacked_to_big_float() argument
251 for (iz = (UNPACKED_SIZE - 2); pu->significand[iz] == 0; iz--); /* Find lsw. */ in _unpacked_to_big_float()
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()
264 *pe = pu->exponent + 1 - 16 * pb->blength; in _unpacked_to_big_float()
H A Ddouble_decim.c121 binary_to_decimal_integer(unpacked *pu, unsigned nsig, char ds[], in binary_to_decimal_integer() argument
132 _unpacked_to_big_float(pu, &b, &e); in binary_to_decimal_integer()
217 binary_to_decimal_fraction(unpacked *pu, unsigned nsig, unsigned nfrac, in binary_to_decimal_fraction() argument
227 if (pu->fpclass == fp_zero) { /* Exact zero. */ in binary_to_decimal_fraction()
237 _unpacked_to_big_float(pu, &b, &e); in binary_to_decimal_fraction()
/titanic_44/usr/src/uts/sparc/fpu/
H A Dunpack.c36 unpacked *pu, /* unpacked result */ in unpackint32() argument
41 pu->sticky = pu->rounded = 0; in unpackint32()
43 pu->sign = 0; in unpackint32()
44 pu->fpclass = fp_zero; in unpackint32()
46 (*pu).sign = x < 0; in unpackint32()
47 (*pu).fpclass = fp_normal; in unpackint32()
48 (*pu).exponent = INTEGER_BIAS; in unpackint32()
50 (*pu).significand[0] = ux>>15; in unpackint32()
51 (*pu).significand[1] = (ux&0x7fff)<<17; in unpackint32()
52 (*pu).significand[2] = 0; in unpackint32()
[all …]
H A Dpack.c67 unpacked *pu) /* unpacked result */ in round() argument
72 sr = pu->sticky|pu->rounded; in round()
79 increment = pu->rounded; in round()
85 increment = (pu->sign == 0) & (sr != 0); in round()
88 increment = (pu->sign != 0) & (sr != 0); in round()
92 pu->significand[3]++; in round()
93 if (pu->significand[3] == 0) { in round()
94 pu->significand[2]++; in round()
95 if (pu->significand[2] == 0) { in round()
96 pu->significand[1]++; in round()
[all …]
H A Dutility.c76 fpu_normalize(unpacked *pu) in fpu_normalize() argument
79 u0 = pu->significand[0]; in fpu_normalize()
80 u1 = pu->significand[1]; in fpu_normalize()
81 u2 = pu->significand[2]; in fpu_normalize()
82 u3 = pu->significand[3]; in fpu_normalize()
83 if ((*pu).fpclass == fp_normal) { in fpu_normalize()
85 (*pu).fpclass = fp_zero; in fpu_normalize()
90 (*pu).exponent = (*pu).exponent - 32; in fpu_normalize()
100 (*pu).exponent += n; in fpu_normalize()
113 (*pu).exponent -= n; in fpu_normalize()
[all …]
/titanic_44/usr/src/lib/libc/port/fp/
H A Dpack_float.c33 __fp_rightshift(unpacked *pu, int n) in __fp_rightshift() argument
41 for (i = 0; (pu->significand[i] == 0) && (i < UNPACKED_SIZE); in __fp_rightshift()
44 pu->fpclass = fp_zero; in __fp_rightshift()
48 pu->significand[i] = 0; in __fp_rightshift()
49 pu->significand[UNPACKED_SIZE - 1] = 1; in __fp_rightshift()
54 if (pu->significand[UNPACKED_SIZE - 1] != 0) in __fp_rightshift()
55 pu->significand[UNPACKED_SIZE - 2] |= 1; in __fp_rightshift()
57 pu->significand[i + 1] = pu->significand[i]; in __fp_rightshift()
58 pu->significand[0] = 0; in __fp_rightshift()
64 high = pu->significand[i] >> n; in __fp_rightshift()
[all …]
H A Dhex_bin.c45 __hex_to_unpacked(decimal_record *pd, unpacked *pu) in __hex_to_unpacked() argument
49 pu->sign = pd->sign; in __hex_to_unpacked()
50 pu->fpclass = pd->fpclass; in __hex_to_unpacked()
58 pu->exponent = pd->exponent + (pd->ndigits << 2) - 1; in __hex_to_unpacked()
62 pu->significand[i] = 0; in __hex_to_unpacked()
68 pu->significand[i >> 3] |= HEXVAL(pd->ds[i]) << in __hex_to_unpacked()
73 if (pu->significand[0] == 0) { in __hex_to_unpacked()
74 pu->fpclass = fp_zero; in __hex_to_unpacked()
79 while (pu->significand[0] < 0x80000000u) { in __hex_to_unpacked()
80 pu->significand[0] = (pu->significand[0] << 1) | in __hex_to_unpacked()
[all …]
/titanic_44/usr/src/grub/grub-0.97/stage2/
H A Dboot.c55 pu; in load_image() local
62 pu.aout = (struct exec *) buffer; in load_image()
100 || pu.elf->e_ident[EI_OSABI] == ELFOSABI_FREEBSD in load_image()
101 || grub_strcmp (pu.elf->e_ident + EI_BRAND, "FreeBSD") == 0 in load_image()
107 entry_addr = (entry_func) pu.elf->e_entry; in load_image()
109 entry_addr = (entry_func) (pu.elf->e_entry & 0xFFFFFF); in load_image()
116 if (pu.elf->e_phoff == 0 || pu.elf->e_phnum == 0 in load_image()
117 || ((pu.elf->e_phoff + (pu.elf->e_phentsize * pu.elf->e_phnum)) in load_image()
140 pu.mb = (struct multiboot_header *) (buffer + i); in load_image()
141 entry_addr = (entry_func) pu.mb->entry_addr; in load_image()
[all …]
/titanic_44/usr/src/uts/common/os/
H A Dexacct.c746 exacct_attach_proc_item(proc_usage_t *pu, ea_object_t *record, int res) in exacct_attach_proc_item() argument
752 (void) ea_attach_item(record, &pu->pu_pid, in exacct_attach_proc_item()
756 (void) ea_attach_item(record, &pu->pu_ruid, in exacct_attach_proc_item()
760 (void) ea_attach_item(record, &pu->pu_acflag, in exacct_attach_proc_item()
764 (void) ea_attach_item(record, &pu->pu_rgid, in exacct_attach_proc_item()
768 (void) ea_attach_item(record, &pu->pu_projid, in exacct_attach_proc_item()
772 (void) ea_attach_item(record, &pu->pu_taskid, in exacct_attach_proc_item()
776 (void) ea_attach_item(record, &pu->pu_utimesec, in exacct_attach_proc_item()
778 (void) ea_attach_item(record, &pu->pu_utimensec, in exacct_attach_proc_item()
780 (void) ea_attach_item(record, &pu->pu_stimesec, in exacct_attach_proc_item()
[all …]
/titanic_44/usr/src/uts/common/syscall/
H A Dexacctsys.c107 proc_usage_t *pu; in getacct_proc() local
120 pu = kmem_zalloc(sizeof (proc_usage_t), KM_SLEEP); in getacct_proc()
121 pu->pu_command = kmem_zalloc(MAXCOMLEN + 1, KM_SLEEP); in getacct_proc()
126 kmem_free(pu->pu_command, MAXCOMLEN + 1); in getacct_proc()
127 kmem_free(pu, sizeof (proc_usage_t)); in getacct_proc()
133 exacct_calculate_proc_usage(p, pu, ac_mask, EW_PARTIAL, 0); in getacct_proc()
136 error = exacct_assemble_proc_usage(ac_proc, pu, in getacct_proc()
139 kmem_free(pu->pu_command, MAXCOMLEN + 1); in getacct_proc()
140 kmem_free(pu, sizeof (proc_usage_t)); in getacct_proc()
252 proc_usage_t *pu; in wracct_proc() local
[all …]
/titanic_44/usr/src/cmd/bnu/
H A Duupick80 pu=/var/spool/uucppublic/receive/$user
81 if test -d $pu -a -s $pu
83 for i in `/usr/bin/ls $pu`
89 if test -d $pu/$i -a -s $pu/$i
91 cd $pu/$i
147 varfrom="$pu/$i/$k"
/titanic_44/usr/src/cmd/units/
H A Dunits.c86 int pu(int u, int i, int f);
162 f |= pu(p->dim[i], i, f); in units()
167 f |= pu(-p->dim[i], i, f); in units()
173 pu(int u, int i, int f) in pu() function
/titanic_44/usr/src/cmd/lp/cmd/lpsched/
H A Dvalidate.c655 register USER *pu = Getuser(prs->secure->user); in _validate() local
718 if (pu && prs->request->priority < pu->priority_limit) in _validate()
719 prs->request->priority = pu->priority_limit; in _validate()
/titanic_44/usr/src/uts/common/crypto/core/
H A Dkcf_sched.c1397 user_t *pu = PTOU(curproc); in kcfpoold() local
1406 (void) snprintf(pu->u_psargs, sizeof (pu->u_psargs), "kcfpoold"); in kcfpoold()
1407 (void) strlcpy(pu->u_comm, pu->u_psargs, sizeof (pu->u_comm)); in kcfpoold()
/titanic_44/usr/src/uts/sun/io/ttymux/
H A Dttymux.c2607 sm_lqi_t *pu; in sm_detach() local
2634 pu = &sm_ssp->sm_lqs[unit]; in sm_detach()
2635 if (pu && pu->sm_linkid != 0) { in sm_detach()
2637 pu->sm_linkid)); in sm_detach()
2649 pu = &sm_ssp->sm_lqs[unit]; in sm_detach()
2650 mutex_destroy(pu->sm_umutex); in sm_detach()
2651 cv_destroy(pu->sm_ucv); in sm_detach()
2652 mutex_destroy(&pu->sm_ttycommon->t_excl); in sm_detach()
/titanic_44/usr/src/lib/libsldap/common/
H A Dns_connmgmt.c989 ns_conn_user_t *pu, *u; in del_cu4cm() local
1012 pu = cm->cu_head; in del_cu4cm()
1016 pu = u; in del_cu4cm()
1018 if (pu != cm->cu_tail) { in del_cu4cm()
1019 pu->next = cu->next; in del_cu4cm()
1020 if (pu->next == NULL) in del_cu4cm()
1021 cm->cu_tail = pu; in del_cu4cm()
/titanic_44/usr/src/cmd/hal/hald/
H A Dhald_dbus.c2372 PendingUpdate *pu; in device_send_signal_property_modified() local
2374 pu = g_new0 (PendingUpdate, 1); in device_send_signal_property_modified()
2375 pu->udi = g_strdup (udi); in device_send_signal_property_modified()
2376 pu->key = g_strdup (key); in device_send_signal_property_modified()
2377 pu->removed = removed; in device_send_signal_property_modified()
2378 pu->added = added; in device_send_signal_property_modified()
2379 pu->next = pending_updates_head; in device_send_signal_property_modified()
2381 pending_updates_head = pu; in device_send_signal_property_modified()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dspa.c978 user_t *pu = PTOU(curproc); in spa_thread() local
984 (void) snprintf(pu->u_psargs, sizeof (pu->u_psargs), in spa_thread()
986 (void) strlcpy(pu->u_comm, pu->u_psargs, sizeof (pu->u_comm)); in spa_thread()