Lines Matching refs:a

65     decNumber t, a, b;  member
147 static void dfp_prepare_decimal64(struct PPC_DFP *dfp, ppc_fprp_t *a, in dfp_prepare_decimal64() argument
154 if (a) { in dfp_prepare_decimal64()
155 get_dfp64(&dfp->va, a); in dfp_prepare_decimal64()
156 decimal64ToNumber((decimal64 *)&dfp->va.VsrD(1), &dfp->a); in dfp_prepare_decimal64()
159 decNumberZero(&dfp->a); in dfp_prepare_decimal64()
171 static void dfp_prepare_decimal128(struct PPC_DFP *dfp, ppc_fprp_t *a, in dfp_prepare_decimal128() argument
178 if (a) { in dfp_prepare_decimal128()
179 get_dfp128(&dfp->va, a); in dfp_prepare_decimal128()
180 decimal128ToNumber((decimal128 *)&dfp->va, &dfp->a); in dfp_prepare_decimal128()
183 decNumberZero(&dfp->a); in dfp_prepare_decimal128()
308 if (decNumberIsSNaN(&dfp->a) || decNumberIsSNaN(&dfp->b)) { in dfp_check_for_VXSNAN()
326 if (decNumberIsInfinite(&dfp->a) && decNumberIsInfinite(&dfp->b)) { in dfp_check_for_VXISI()
327 int same = decNumberClass(&dfp->a, &dfp->context) == in dfp_check_for_VXISI()
349 if ((decNumberIsInfinite(&dfp->a) && decNumberIsZero(&dfp->b)) || in dfp_check_for_VXIMZ()
350 (decNumberIsInfinite(&dfp->b) && decNumberIsZero(&dfp->a))) { in dfp_check_for_VXIMZ()
366 if (decNumberIsInfinite(&dfp->a) && decNumberIsInfinite(&dfp->b)) { in dfp_check_for_VXIDI()
374 if (decNumberIsNaN(&dfp->a) || decNumberIsNaN(&dfp->b)) { in dfp_check_for_VXVC()
382 (!decNumberIsSNaN(&dfp->a)) && in dfp_check_for_VXCVI()
430 void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \
434 dfp_prepare_decimal##size(&dfp, a, b, env); \
435 dnop(&dfp.t, &dfp.a, &dfp.b, &dfp.context); \
496 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \
499 dfp_prepare_decimal##size(&dfp, a, b, env); \
500 dnop(&dfp.t, &dfp.a, &dfp.b, &dfp.context); \
528 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, uint32_t dcm) \
533 dfp_prepare_decimal##size(&dfp, a, 0, env); \
535 match |= (dcm & 0x20) && decNumberIsZero(&dfp.a); \
536 match |= (dcm & 0x10) && decNumberIsSubnormal(&dfp.a, &dfp.context); \
537 match |= (dcm & 0x08) && decNumberIsNormal(&dfp.a, &dfp.context); \
538 match |= (dcm & 0x04) && decNumberIsInfinite(&dfp.a); \
539 match |= (dcm & 0x02) && decNumberIsQNaN(&dfp.a); \
540 match |= (dcm & 0x01) && decNumberIsSNaN(&dfp.a); \
542 if (decNumberIsNegative(&dfp.a)) { \
556 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, uint32_t dcm) \
563 dfp_prepare_decimal##size(&dfp, a, 0, env); \
577 is_negative = decNumberIsNegative(&dfp.a); \
578 is_zero = decNumberIsZero(&dfp.a); \
579 is_extreme_exp = (dfp.a.exponent == maxexp) || \
580 (dfp.a.exponent == minexp); \
581 is_subnormal = decNumberIsSubnormal(&dfp.a, &dfp.context); \
582 is_normal = decNumberIsNormal(&dfp.a, &dfp.context); \
583 leftmost_is_nonzero = (dfp.a.digits == nzero_digits) && \
584 (dfp.a.lsu[nzero_idx] != 0); \
595 match |= (dcm & 0x01) && decNumberIsSpecial(&dfp.a); \
611 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \
616 dfp_prepare_decimal##size(&dfp, a, b, env); \
618 expa = dfp.a.exponent; \
620 a_is_special = decNumberIsSpecial(&dfp.a); \
624 int atype = a_is_special ? (decNumberIsNaN(&dfp.a) ? 4 : 2) : 1; \
643 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \
651 get_dfp64(&va, a); \
680 uint32_t helper_##op(CPUPPCState *env, uint32_t a, ppc_fprp_t *b) \
687 uim = a & 0x3F; \
725 decNumberQuantize(&dfp->t, &dfp->b, &dfp->a, &dfp->context); in dfp_quantize()
726 if (decNumberIsSNaN(&dfp->a)) { in dfp_quantize()
727 dfp->t = dfp->a; in dfp_quantize()
732 } else if (decNumberIsQNaN(&dfp->a)) { in dfp_quantize()
733 dfp->t = dfp->a; in dfp_quantize()
747 decNumberFromUInt32(&dfp.a, 1); \
748 dfp.a.exponent = (int32_t)((int8_t)(te << 3) >> 3); \
761 void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \
766 dfp_prepare_decimal##size(&dfp, a, b, env); \
795 decNumberFromUInt32(&dfp->a, 1); in _dfp_reround()
796 dfp->a.exponent = dfp->b.exponent + dfp->b.digits - ref_sig; in _dfp_reround()
798 if (unlikely(dfp->a.exponent > xmax)) { in _dfp_reround()
833 void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \
843 get_dfp64(&va, a); \
1277 void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \
1286 get_dfp64(&va, a); \
1371 void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \
1377 dfp_prepare_decimal##size(&dfp, a, 0, env); \
1382 unsigned special = dfp.a.bits & DECSPECIAL; \
1390 dfp.a.bits &= ~DECSPECIAL; \
1391 decNumberShift(&dfp.t, &dfp.a, &shd, &dfp.context); \
1426 decNumber a; in helper_CDTBCD() local
1434 decimal32ToNumber((decimal32 *)&dec32, &a); in helper_CDTBCD()
1435 decNumberGetBCD(&a, bcd); in helper_CDTBCD()
1436 for (i = 0; i < a.digits; i++) { in helper_CDTBCD()
1437 sh = 4 * (a.digits - 1 - i); in helper_CDTBCD()
1452 decNumber a; in helper_CBCDTD() local
1459 decNumberZero(&a); in helper_CBCDTD()
1475 decNumberSetBCD(&a, bcd, 6); in helper_CBCDTD()
1476 decimal32FromNumber((decimal32 *)&dec32, &a, &context); in helper_CBCDTD()