Searched defs:pu (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dunpack_float.c80 _unpack_single(unpacked *pu, single *px) argument
86 (*pu).sign = x.f.msw.sign;
88 pu->significand[i] = 0;
91 pu->fpclass = fp_zero;
94 pu->fpclass = fp_normal;
95 pu->exponent = -SINGLE_BIAS;
96 pu->significand[0] = x.f.msw.significand << 9;
97 _fp_normalize(pu);
102 pu->fpclass = fp_infinity;
106 pu
121 _unpack_extended(unpacked *pu, extended *px) argument
163 _display_unpacked(unpacked *pu) argument
[all...]
H A D_unpack_dble.c33 _fp_normalize(unpacked *pu) argument
39 if ((*pu).fpclass == fp_normal) {
40 for (nlzwords = 0; (pu->significand[nlzwords] == 0) && (nlzwords < UNPACKED_SIZE); nlzwords++);
42 (*pu).fpclass = fp_zero;
47 pu->significand[i] = pu->significand[i + nlzwords];
49 pu->significand[i] = 0;
50 pu->exponent -= 32 * nlzwords;
52 for (; pu->significand[UNPACKED_SIZE - 1 - nlzwords] == 0; nlzwords++);
56 t = pu
110 _fp_leftshift(unpacked *pu, unsigned n) argument
125 _unpack_double(unpacked *pu, double *px) argument
197 _unpack_quadruple(unpacked *pu, quadruple *px) argument
[all...]
H A D_base_sup.c270 _big_binary_to_unpacked(_big_float *pb, unpacked *pu) argument
283 pu->significand[iu++] = pb->bsignificand[ib] << 16 | pb->bsignificand[ib - 1];
288 pu->significand[iu++] = pb->bsignificand[ib] << 16;
290 pu->significand[iu] = 0;
296 pu->significand[UNPACKED_SIZE - 1] |= 1; /* Stick lsb if nonzero
300 pu->exponent = 16 * pb->blength + pb->bexponent - 1;
301 _fp_normalize(pu);
305 _display_unpacked(pu);
H A D_sprintf_sup.c242 _unpacked_to_big_float(unpacked *pu, _big_float *pb, int *pe) argument
245 * Converts pu into a bigfloat *pb of minimal length; exponent *pe
246 * such that pu = *pb * 2 ** *pe
251 for (iz = (UNPACKED_SIZE - 2); pu->significand[iz] == 0; iz--); /* Find lsw. */
254 pb->bsignificand[2 * (iz - it)] = pu->significand[it] & 0xffff;
255 pb->bsignificand[2 * (iz - it) + 1] = pu->significand[it] >> 16;
264 *pe = pu->exponent + 1 - 16 * pb->blength;
H A Ddouble_decim.c106 * Converts an unpacked integer value *pu into a decimal string in *ds, of
111 * pu: Input unpacked integer value input.
121 binary_to_decimal_integer(unpacked *pu, unsigned nsig, char ds[], argument
132 _unpacked_to_big_float(pu, &b, &e);
195 * Converts an unpacked fraction value *pu into a decimal string consisting
203 * pu: Input unpacked fraction value output < 1
217 binary_to_decimal_fraction(unpacked *pu, unsigned nsig, unsigned nfrac, argument
227 if (pu->fpclass == fp_zero) { /* Exact zero. */
237 _unpacked_to_big_float(pu, &b, &e);
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dhex_bin.c37 * Convert a hexadecimal record in *pd to unpacked form in *pu.
45 __hex_to_unpacked(decimal_record *pd, unpacked *pu) argument
49 pu->sign = pd->sign;
50 pu->fpclass = pd->fpclass;
55 * digit while the radix point in *pu lies to the right of the
58 pu->exponent = pd->exponent + (pd->ndigits << 2) - 1;
62 pu->significand[i] = 0;
68 pu->significand[i >> 3] |= HEXVAL(pd->ds[i]) <<
73 if (pu->significand[0] == 0) {
74 pu
[all...]
H A Dpack_float.c33 __fp_rightshift(unpacked *pu, int n) argument
41 for (i = 0; (pu->significand[i] == 0) && (i < UNPACKED_SIZE);
44 pu->fpclass = fp_zero;
48 pu->significand[i] = 0;
49 pu->significand[UNPACKED_SIZE - 1] = 1;
54 if (pu->significand[UNPACKED_SIZE - 1] != 0)
55 pu->significand[UNPACKED_SIZE - 2] |= 1;
57 pu->significand[i + 1] = pu->significand[i];
58 pu
100 round(unpacked *pu, int roundword, enum fp_direction_type rd, int *ex) argument
154 __pack_single(unpacked *pu, single *px, enum fp_direction_type rd, fp_exception_field_type *ex) argument
218 __pack_double(unpacked *pu, double *px, enum fp_direction_type rd, fp_exception_field_type *ex) argument
291 __pack_extended(unpacked *pu, extended *px, enum fp_direction_type rd, fp_exception_field_type *ex) argument
359 __pack_quadruple(unpacked *pu, quadruple *px, enum fp_direction_type rd, fp_exception_field_type *ex) argument
[all...]
/illumos-gate/usr/src/tools/smatch/src/
H A Dunssa.c45 struct pseudo_user *pu; local
60 FOR_EACH_PTR(target->users, pu) {
61 use_pseudo(pu->insn, tmp, pu->userp);
62 } END_FOR_EACH_PTR(pu);
H A Dmemops.c67 struct pseudo_user *pu; local
68 FOR_EACH_PTR(pseudo->users, pu) {
69 struct instruction *insn = pu->insn;
72 } END_FOR_EACH_PTR(pu);
H A Dflow.c278 struct pseudo_user *pu; local
285 FOR_EACH_PTR(target->users, pu) {
286 if (*pu->userp != VOID) {
287 assert(*pu->userp == target);
288 *pu->userp = src;
290 } END_FOR_EACH_PTR(pu);
654 struct pseudo_user *pu; local
672 FOR_EACH_PTR(pseudo->users, pu) {
674 struct instruction *insn = pu->insn;
694 } END_FOR_EACH_PTR(pu);
[all...]
H A Dsimplify.c171 struct pseudo_user *pu; local
173 FOR_EACH_PTR(*list, pu) {
174 if (pu->userp == entry) {
175 MARK_CURRENT_DELETED(pu);
179 } END_FOR_EACH_PTR(pu);
310 struct pseudo_user *pu; local
311 FOR_EACH_PTR(insn->target->users, pu) {
312 if (*pu->userp != VOID)
314 } END_FOR_EACH_PTR(pu);
H A Dlinearize.c541 struct pseudo_user *pu; local
544 FOR_EACH_PTR(pseudo->users, pu) {
545 printf("\t%s\n", show_instruction(pu->insn));
546 } END_FOR_EACH_PTR(pu);
/illumos-gate/usr/src/uts/sparc/fpu/
H A Dunpack.c36 unpacked *pu, /* unpacked result */
41 pu->sticky = pu->rounded = 0;
43 pu->sign = 0;
44 pu->fpclass = fp_zero;
46 (*pu).sign = x < 0;
47 (*pu).fpclass = fp_normal;
48 (*pu).exponent = INTEGER_BIAS;
50 (*pu).significand[0] = ux>>15;
51 (*pu)
35 unpackint32( unpacked *pu, int32_t x) argument
69 unpackint64( unpacked *pu, int64_t x) argument
98 unpacksingle( fp_simd_type *pfpsd, unpacked *pu, single_type x) argument
145 unpackdouble( fp_simd_type *pfpsd, unpacked *pu, double_type x, uint_t y) argument
195 unpackextended( fp_simd_type *pfpsd, unpacked *pu, extended_type x, uint32_t y, uint32_t z, uint32_t w) argument
243 _fp_unpack( fp_simd_type *pfpsd, unpacked *pu, uint_t n, enum fp_op_type dtype) argument
290 _fp_unpack_word( fp_simd_type *pfpsd, uint32_t *pu, uint_t n) argument
299 _fp_unpack_extword( fp_simd_type *pfpsd, uint64_t *pu, uint_t n) argument
[all...]
H A Dpack.c67 unpacked *pu) /* unpacked result */
72 sr = pu->sticky|pu->rounded;
79 increment = pu->rounded;
85 increment = (pu->sign == 0) & (sr != 0);
88 increment = (pu->sign != 0) & (sr != 0);
92 pu->significand[3]++;
93 if (pu->significand[3] == 0) {
94 pu->significand[2]++;
95 if (pu
65 round( fp_simd_type *pfpsd, unpacked *pu) argument
114 packint32( fp_simd_type *pfpsd, unpacked *pu, int32_t *px) argument
150 packint64( fp_simd_type *pfpsd, unpacked *pu, int64_t *px) argument
196 packsingle( fp_simd_type *pfpsd, unpacked *pu, single_type *px) argument
270 packdouble( fp_simd_type *pfpsd, unpacked *pu, double_type *px, uint_t *py) argument
354 packextended( fp_simd_type *pfpsd, unpacked *pu, extended_type *px, uint_t *py, uint_t *pz, uint_t *pw) argument
447 _fp_pack( fp_simd_type *pfpsd, unpacked *pu, uint_t n, enum fp_op_type type) argument
567 _fp_pack_word( fp_simd_type *pfpsd, uint32_t *pu, uint_t n) argument
576 _fp_pack_extword( fp_simd_type *pfpsd, uint64_t *pu, uint_t n) argument
[all...]
H A Dutility.c76 fpu_normalize(unpacked *pu) argument
79 u0 = pu->significand[0];
80 u1 = pu->significand[1];
81 u2 = pu->significand[2];
82 u3 = pu->significand[3];
83 if ((*pu).fpclass == fp_normal) {
85 (*pu).fpclass = fp_zero;
90 (*pu).exponent = (*pu).exponent - 32;
100 (*pu)
130 fpu_rightshift(unpacked *pu, int n) argument
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dboot.c55 pu; local
62 pu.aout = (struct exec *) buffer;
100 || pu.elf->e_ident[EI_OSABI] == ELFOSABI_FREEBSD
101 || grub_strcmp (pu.elf->e_ident + EI_BRAND, "FreeBSD") == 0
107 entry_addr = (entry_func) pu.elf->e_entry;
109 entry_addr = (entry_func) (pu.elf->e_entry & 0xFFFFFF);
116 if (pu.elf->e_phoff == 0 || pu.elf->e_phnum == 0
117 || ((pu.elf->e_phoff + (pu
[all...]
/illumos-gate/usr/src/cmd/units/
H A Dunits.c86 int pu(int u, int i, int f);
162 f |= pu(p->dim[i], i, f);
167 f |= pu(-p->dim[i], i, f);
173 pu(int u, int i, int f) function
/illumos-gate/usr/src/uts/common/syscall/
H A Dexacctsys.c105 proc_usage_t *pu; local
118 pu = kmem_zalloc(sizeof (proc_usage_t), KM_SLEEP);
119 pu->pu_command = kmem_zalloc(MAXCOMLEN + 1, KM_SLEEP);
124 kmem_free(pu->pu_command, MAXCOMLEN + 1);
125 kmem_free(pu, sizeof (proc_usage_t));
131 exacct_calculate_proc_usage(p, pu, ac_mask, EW_PARTIAL, 0);
134 error = exacct_assemble_proc_usage(ac_proc, pu,
137 kmem_free(pu->pu_command, MAXCOMLEN + 1);
138 kmem_free(pu, sizeof (proc_usage_t));
250 proc_usage_t *pu; local
[all...]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dvalidate.c656 register USER *pu = Getuser(prs->secure->user); local
719 if (pu && prs->request->priority < pu->priority_limit)
720 prs->request->priority = pu->priority_limit;
/illumos-gate/usr/src/uts/common/os/
H A Dexacct.c746 exacct_attach_proc_item(proc_usage_t *pu, ea_object_t *record, int res) argument
752 (void) ea_attach_item(record, &pu->pu_pid,
756 (void) ea_attach_item(record, &pu->pu_ruid,
760 (void) ea_attach_item(record, &pu->pu_acflag,
764 (void) ea_attach_item(record, &pu->pu_rgid,
768 (void) ea_attach_item(record, &pu->pu_projid,
772 (void) ea_attach_item(record, &pu->pu_taskid,
776 (void) ea_attach_item(record, &pu->pu_utimesec,
778 (void) ea_attach_item(record, &pu->pu_utimensec,
780 (void) ea_attach_item(record, &pu
862 exacct_assemble_proc_record(proc_usage_t *pu, ulong_t *mask, ea_catalog_t record_type) argument
887 exacct_calculate_proc_mstate(proc_t *p, proc_usage_t *pu) argument
912 exacct_copy_proc_mstate(proc_t *p, proc_usage_t *pu) argument
929 exacct_calculate_proc_usage(proc_t *p, proc_usage_t *pu, ulong_t *mask, int flag, int wstat) argument
1020 exacct_assemble_proc_usage(ac_info_t *ac_proc, proc_usage_t *pu, int (*callback)(ac_info_t *, void *, size_t, void *, size_t, size_t *), void *ubuf, size_t ubufsize, size_t *actual, int flag) argument
1103 proc_usage_t *pu; local
[all...]
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_sched.c1397 user_t *pu = PTOU(curproc); local
1406 (void) snprintf(pu->u_psargs, sizeof (pu->u_psargs), "kcfpoold");
1407 (void) strlcpy(pu->u_comm, pu->u_psargs, sizeof (pu->u_comm));
/illumos-gate/usr/src/cmd/hal/hald/
H A Dhald_dbus.c2372 PendingUpdate *pu; local
2374 pu = g_new0 (PendingUpdate, 1);
2375 pu->udi = g_strdup (udi);
2376 pu->key = g_strdup (key);
2377 pu->removed = removed;
2378 pu->added = added;
2379 pu->next = pending_updates_head;
2381 pending_updates_head = pu;
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_connmgmt.c989 ns_conn_user_t *pu, *u; local
1012 pu = cm->cu_head;
1016 pu = u;
1018 if (pu != cm->cu_tail) {
1019 pu->next = cu->next;
1020 if (pu->next == NULL)
1021 cm->cu_tail = pu;
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa.c1074 user_t *pu = PTOU(curproc); local
1080 (void) snprintf(pu->u_psargs, sizeof (pu->u_psargs),
1082 (void) strlcpy(pu->u_comm, pu->u_psargs, sizeof (pu->u_comm));

Completed in 183 milliseconds