Lines Matching refs:temp

189     uint16_t temp;  in mipsdsp_add_u8()  local
191 temp = (uint16_t)a + (uint16_t)b; in mipsdsp_add_u8()
193 if (temp & 0x0100) { in mipsdsp_add_u8()
197 return temp & 0xFF; in mipsdsp_add_u8()
203 uint32_t temp; in mipsdsp_add_u16() local
205 temp = (uint32_t)a + (uint32_t)b; in mipsdsp_add_u16()
207 if (temp & 0x00010000) { in mipsdsp_add_u16()
211 return temp & 0xFFFF; in mipsdsp_add_u16()
218 uint16_t temp; in mipsdsp_sat_add_u8() local
220 temp = (uint16_t)a + (uint16_t)b; in mipsdsp_sat_add_u8()
221 result = temp & 0xFF; in mipsdsp_sat_add_u8()
223 if (0x0100 & temp) { in mipsdsp_sat_add_u8()
235 uint32_t temp; in mipsdsp_sat_add_u16() local
237 temp = (uint32_t)a + (uint32_t)b; in mipsdsp_sat_add_u16()
238 result = temp & 0xFFFF; in mipsdsp_sat_add_u16()
240 if (0x00010000 & temp) { in mipsdsp_sat_add_u16()
251 int64_t temp; in mipsdsp_sat32_acc_q31() local
256 temp = ((uint64_t)env->active_tc.HI[acc] << 32) | in mipsdsp_sat32_acc_q31()
259 temp = (uint64_t)env->active_tc.LO[acc]; in mipsdsp_sat32_acc_q31()
262 temp_sum = (int64_t)a + temp; in mipsdsp_sat32_acc_q31()
339 int32_t temp; in mipsdsp_mul_i16_i16() local
341 temp = (int32_t)a * (int32_t)b; in mipsdsp_mul_i16_i16()
343 if ((temp > (int)0x7FFF) || (temp < (int)0xFFFF8000)) { in mipsdsp_mul_i16_i16()
346 temp &= 0x0000FFFF; in mipsdsp_mul_i16_i16()
348 return temp; in mipsdsp_mul_i16_i16()
366 int32_t temp; in mipsdsp_sat16_mul_i16_i16() local
368 temp = (int32_t)a * (int32_t)b; in mipsdsp_sat16_mul_i16_i16()
370 if (temp > (int)0x7FFF) { in mipsdsp_sat16_mul_i16_i16()
371 temp = 0x00007FFF; in mipsdsp_sat16_mul_i16_i16()
373 } else if (temp < (int)0xffff8000) { in mipsdsp_sat16_mul_i16_i16()
374 temp = 0xFFFF8000; in mipsdsp_sat16_mul_i16_i16()
377 temp &= 0x0000FFFF; in mipsdsp_sat16_mul_i16_i16()
379 return temp; in mipsdsp_sat16_mul_i16_i16()
385 int32_t temp; in mipsdsp_mul_q15_q15_overflowflag21() local
388 temp = 0x7FFFFFFF; in mipsdsp_mul_q15_q15_overflowflag21()
391 temp = ((int16_t)a * (int16_t)b) << 1; in mipsdsp_mul_q15_q15_overflowflag21()
394 return temp; in mipsdsp_mul_q15_q15_overflowflag21()
427 int32_t temp; in mipsdsp_rshift1_add_q16() local
429 temp = (int32_t)a + (int32_t)b; in mipsdsp_rshift1_add_q16()
431 return (temp >> 1) & 0xFFFF; in mipsdsp_rshift1_add_q16()
437 int32_t temp; in mipsdsp_rrshift1_add_q16() local
439 temp = (int32_t)a + (int32_t)b; in mipsdsp_rrshift1_add_q16()
440 temp += 1; in mipsdsp_rrshift1_add_q16()
442 return (temp >> 1) & 0xFFFF; in mipsdsp_rrshift1_add_q16()
447 int64_t temp; in mipsdsp_rshift1_add_q32() local
449 temp = (int64_t)a + (int64_t)b; in mipsdsp_rshift1_add_q32()
451 return (temp >> 1) & 0xFFFFFFFF; in mipsdsp_rshift1_add_q32()
456 int64_t temp; in mipsdsp_rrshift1_add_q32() local
458 temp = (int64_t)a + (int64_t)b; in mipsdsp_rrshift1_add_q32()
459 temp += 1; in mipsdsp_rrshift1_add_q32()
461 return (temp >> 1) & 0xFFFFFFFF; in mipsdsp_rrshift1_add_q32()
466 uint16_t temp; in mipsdsp_rshift1_add_u8() local
468 temp = (uint16_t)a + (uint16_t)b; in mipsdsp_rshift1_add_u8()
470 return (temp >> 1) & 0x00FF; in mipsdsp_rshift1_add_u8()
475 uint16_t temp; in mipsdsp_rrshift1_add_u8() local
477 temp = (uint16_t)a + (uint16_t)b + 1; in mipsdsp_rrshift1_add_u8()
479 return (temp >> 1) & 0x00FF; in mipsdsp_rrshift1_add_u8()
485 uint16_t temp; in mipsdsp_rshift1_sub_u8() local
487 temp = (uint16_t)a - (uint16_t)b; in mipsdsp_rshift1_sub_u8()
489 return (temp >> 1) & 0x00FF; in mipsdsp_rshift1_sub_u8()
494 uint16_t temp; in mipsdsp_rrshift1_sub_u8() local
496 temp = (uint16_t)a - (uint16_t)b + 1; in mipsdsp_rrshift1_sub_u8()
498 return (temp >> 1) & 0x00FF; in mipsdsp_rrshift1_sub_u8()
569 int32_t temp; in mipsdsp_mul_q15_q15() local
572 temp = 0x7FFFFFFF; in mipsdsp_mul_q15_q15()
575 temp = ((int16_t)a * (int16_t)b) << 1; in mipsdsp_mul_q15_q15()
578 return temp; in mipsdsp_mul_q15_q15()
584 uint64_t temp; in mipsdsp_mul_q31_q31() local
587 temp = (0x01ull << 63) - 1; in mipsdsp_mul_q31_q31()
590 temp = ((int64_t)(int32_t)a * (int32_t)b) << 1; in mipsdsp_mul_q31_q31()
593 return temp; in mipsdsp_mul_q31_q31()
625 uint32_t temp; in mipsdsp_rndq15_mul_q15_q15() local
628 temp = 0x7FFF0000; in mipsdsp_rndq15_mul_q15_q15()
631 temp = ((int16_t)a * (int16_t)b) << 1; in mipsdsp_rndq15_mul_q15_q15()
632 temp = temp + 0x00008000; in mipsdsp_rndq15_mul_q15_q15()
635 return (temp & 0xFFFF0000) >> 16; in mipsdsp_rndq15_mul_q15_q15()
641 int32_t temp; in mipsdsp_sat16_mul_q15_q15() local
644 temp = 0x7FFF0000; in mipsdsp_sat16_mul_q15_q15()
647 temp = (int16_t)a * (int16_t)b; in mipsdsp_sat16_mul_q15_q15()
648 temp = temp << 1; in mipsdsp_sat16_mul_q15_q15()
651 return (temp >> 16) & 0x0000FFFF; in mipsdsp_sat16_mul_q15_q15()
657 uint16_t temp; in mipsdsp_trunc16_sat16_round() local
666 temp = 0x7FFF; in mipsdsp_trunc16_sat16_round()
669 temp = ((a + 0x8000) >> 16) & 0xFFFF; in mipsdsp_trunc16_sat16_round()
672 return temp; in mipsdsp_trunc16_sat16_round()
799 uint32_t temp; in mipsdsp_rnd8_rashift() local
802 temp = (uint32_t)a << 1; in mipsdsp_rnd8_rashift()
804 temp = (int32_t)(int8_t)a >> (s - 1); in mipsdsp_rnd8_rashift()
807 return (temp + 1) >> 1; in mipsdsp_rnd8_rashift()
812 uint32_t temp; in mipsdsp_rnd16_rashift() local
815 temp = (uint32_t)a << 1; in mipsdsp_rnd16_rashift()
817 temp = (int32_t)(int16_t)a >> (s - 1); in mipsdsp_rnd16_rashift()
820 return (temp + 1) >> 1; in mipsdsp_rnd16_rashift()
825 int64_t temp; in mipsdsp_rnd32_rashift() local
828 temp = (uint64_t)a << 1; in mipsdsp_rnd32_rashift()
830 temp = (int64_t)(int32_t)a >> (s - 1); in mipsdsp_rnd32_rashift()
832 temp += 1; in mipsdsp_rnd32_rashift()
834 return (temp >> 1) & 0xFFFFFFFFull; in mipsdsp_rnd32_rashift()
839 int16_t temp; in mipsdsp_sub_i16() local
841 temp = a - b; in mipsdsp_sub_i16()
842 if (MIPSDSP_OVERFLOW_SUB(a, b, temp, 0x8000)) { in mipsdsp_sub_i16()
846 return temp; in mipsdsp_sub_i16()
852 int16_t temp; in mipsdsp_sat16_sub() local
854 temp = a - b; in mipsdsp_sat16_sub()
855 if (MIPSDSP_OVERFLOW_SUB(a, b, temp, 0x8000)) { in mipsdsp_sat16_sub()
857 temp = 0x7FFF; in mipsdsp_sat16_sub()
859 temp = 0x8000; in mipsdsp_sat16_sub()
864 return temp; in mipsdsp_sat16_sub()
870 int32_t temp; in mipsdsp_sat32_sub() local
872 temp = a - b; in mipsdsp_sat32_sub()
873 if (MIPSDSP_OVERFLOW_SUB(a, b, temp, 0x80000000)) { in mipsdsp_sat32_sub()
875 temp = 0x7FFFFFFF; in mipsdsp_sat32_sub()
877 temp = 0x80000000; in mipsdsp_sat32_sub()
882 return temp & 0xFFFFFFFFull; in mipsdsp_sat32_sub()
887 int32_t temp; in mipsdsp_rshift1_sub_q16() local
889 temp = (int32_t)a - (int32_t)b; in mipsdsp_rshift1_sub_q16()
891 return (temp >> 1) & 0x0000FFFF; in mipsdsp_rshift1_sub_q16()
896 int32_t temp; in mipsdsp_rrshift1_sub_q16() local
898 temp = (int32_t)a - (int32_t)b; in mipsdsp_rrshift1_sub_q16()
899 temp += 1; in mipsdsp_rrshift1_sub_q16()
901 return (temp >> 1) & 0x0000FFFF; in mipsdsp_rrshift1_sub_q16()
906 int64_t temp; in mipsdsp_rshift1_sub_q32() local
908 temp = (int64_t)a - (int64_t)b; in mipsdsp_rshift1_sub_q32()
910 return (temp >> 1) & 0xFFFFFFFFull; in mipsdsp_rshift1_sub_q32()
915 int64_t temp; in mipsdsp_rrshift1_sub_q32() local
917 temp = (int64_t)a - (int64_t)b; in mipsdsp_rrshift1_sub_q32()
918 temp += 1; in mipsdsp_rrshift1_sub_q32()
920 return (temp >> 1) & 0xFFFFFFFFull; in mipsdsp_rrshift1_sub_q32()
927 uint32_t temp; in mipsdsp_sub_u16_u16() local
929 temp = (uint32_t)a - (uint32_t)b; in mipsdsp_sub_u16_u16()
930 temp16 = (temp >> 16) & 0x01; in mipsdsp_sub_u16_u16()
934 return temp & 0x0000FFFF; in mipsdsp_sub_u16_u16()
941 uint32_t temp; in mipsdsp_satu16_sub_u16_u16() local
943 temp = (uint32_t)a - (uint32_t)b; in mipsdsp_satu16_sub_u16_u16()
944 temp16 = (temp >> 16) & 0x01; in mipsdsp_satu16_sub_u16_u16()
947 temp = 0x0000; in mipsdsp_satu16_sub_u16_u16()
951 return temp & 0x0000FFFF; in mipsdsp_satu16_sub_u16_u16()
957 uint16_t temp; in mipsdsp_sub_u8() local
959 temp = (uint16_t)a - (uint16_t)b; in mipsdsp_sub_u8()
960 temp8 = (temp >> 8) & 0x01; in mipsdsp_sub_u8()
965 return temp & 0x00FF; in mipsdsp_sub_u8()
971 uint16_t temp; in mipsdsp_satu8_sub() local
973 temp = (uint16_t)a - (uint16_t)b; in mipsdsp_satu8_sub()
974 temp8 = (temp >> 8) & 0x01; in mipsdsp_satu8_sub()
976 temp = 0x00; in mipsdsp_satu8_sub()
980 return temp & 0x00FF; in mipsdsp_satu8_sub()
986 int32_t temp; in mipsdsp_sub32() local
988 temp = a - b; in mipsdsp_sub32()
989 if (MIPSDSP_OVERFLOW_SUB(a, b, temp, 0x80000000)) { in mipsdsp_sub32()
993 return temp; in mipsdsp_sub32()
998 int32_t temp; in mipsdsp_add_i32() local
1000 temp = a + b; in mipsdsp_add_i32()
1002 if (MIPSDSP_OVERFLOW_ADD(a, b, temp, 0x80000000)) { in mipsdsp_add_i32()
1006 return temp; in mipsdsp_add_i32()
1279 uint64_t temp, tempRs, tempRt; in helper_addsc() local
1285 temp = tempRs + tempRt; in helper_addsc()
1286 flag = (temp & 0x0100000000ull) >> 32; in helper_addsc()
1289 return (target_long)(int32_t)(temp & MIPSDSP_LLO); in helper_addsc()
1431 uint64_t temp; in helper_precr_ob_qh() local
1442 temp = ((uint64_t)rs6 << 56) | ((uint64_t)rs4 << 48) | in helper_precr_ob_qh()
1447 return temp; in helper_precr_ob_qh()
1491 uint64_t temp; in helper_precrq_ob_qh() local
1502 temp = ((uint64_t)rs6 << 56) | ((uint64_t)rs4 << 48) | in helper_precrq_ob_qh()
1507 return temp; in helper_precrq_ob_qh()
1579 uint8_t temp[8]; in helper_precrqu_s_ob_qh() local
1587 temp[7] = mipsdsp_sat8_reduce_precision(rs3, env); in helper_precrqu_s_ob_qh()
1588 temp[6] = mipsdsp_sat8_reduce_precision(rs2, env); in helper_precrqu_s_ob_qh()
1589 temp[5] = mipsdsp_sat8_reduce_precision(rs1, env); in helper_precrqu_s_ob_qh()
1590 temp[4] = mipsdsp_sat8_reduce_precision(rs0, env); in helper_precrqu_s_ob_qh()
1591 temp[3] = mipsdsp_sat8_reduce_precision(rt3, env); in helper_precrqu_s_ob_qh()
1592 temp[2] = mipsdsp_sat8_reduce_precision(rt2, env); in helper_precrqu_s_ob_qh()
1593 temp[1] = mipsdsp_sat8_reduce_precision(rt1, env); in helper_precrqu_s_ob_qh()
1594 temp[0] = mipsdsp_sat8_reduce_precision(rt0, env); in helper_precrqu_s_ob_qh()
1597 result |= (uint64_t)temp[i] << (8 * i); in helper_precrqu_s_ob_qh()
1768 uint64_t temp; \
1771 temp = 0; \
1776 temp |= (uint64_t)rt_t[i] << (8 * i); \
1779 return temp; \
1788 uint64_t temp; \
1791 temp = 0; \
1796 temp |= (uint64_t)rt_t[i] << (8 * i); \
1799 return temp; \
1885 uint32_t temp; \
1888 temp = mipsdsp_##func(rt, sa); \
1890 return (target_long)(int32_t)temp; \
1897 uint32_t temp; \
1900 temp = mipsdsp_##func(rt, sa, env); \
1902 return (target_long)(int32_t)temp; \
2023 int32_t temp; \
2027 temp = mipsdsp_##func(rsh, rth, env); \
2029 return (target_long)(int32_t)temp; \
2143 int64_t temp[2]; in helper_mulsaq_s_w_qh() local
2154 temp[0] = ((int32_t)tempD - (int32_t)tempC) + in helper_mulsaq_s_w_qh()
2156 temp[0] = (int64_t)(temp[0] << 30) >> 30; in helper_mulsaq_s_w_qh()
2157 if (((temp[0] >> 33) & 0x01) == 0) { in helper_mulsaq_s_w_qh()
2158 temp[1] = 0x00; in helper_mulsaq_s_w_qh()
2160 temp[1] = ~0ull; in helper_mulsaq_s_w_qh()
2166 temp_sum = acc[0] + temp[0]; in helper_mulsaq_s_w_qh()
2168 ((uint64_t)temp_sum < (uint64_t)temp[0])) { in helper_mulsaq_s_w_qh()
2172 acc[1] += temp[1]; in helper_mulsaq_s_w_qh()
2227 uint64_t temp[2]; \
2231 temp[0] = 0; \
2232 temp[1] = 0; \
2248 temp[0] = (uint64_t)tempD + (uint64_t)tempC + \
2255 temp_sum = acc[0] + temp[0]; \
2257 ((uint64_t)temp_sum < (uint64_t)temp[0])) { \
2260 temp[0] = temp_sum; \
2261 temp[1] = acc[1] + temp[1]; \
2263 temp_sum = acc[0] - temp[0]; \
2267 temp[0] = temp_sum; \
2268 temp[1] = acc[1] - temp[1]; \
2271 env->active_tc.HI[ac] = temp[1]; \
2272 env->active_tc.LO[ac] = temp[0]; \
2412 int64_t temp[2]; \
2430 temp[0] = (int64_t)tempD + (int64_t)tempC + \
2433 if (temp[0] >= 0) { \
2434 temp[1] = 0; \
2436 temp[1] = ~0ull; \
2443 temp_sum = acc[0] + temp[0]; \
2445 ((uint64_t)temp_sum < (uint64_t)temp[0])) { \
2448 temp[0] = temp_sum; \
2449 temp[1] = acc[1] + temp[1]; \
2451 temp_sum = acc[0] - temp[0]; \
2455 temp[0] = temp_sum; \
2456 temp[1] = acc[1] - temp[1]; \
2459 env->active_tc.HI[ac] = temp[1]; \
2460 env->active_tc.LO[ac] = temp[0]; \
2478 uint64_t temp; \
2485 temp = acc + dotp; \
2487 temp, (0x01ull << 63)); \
2489 temp = acc - dotp; \
2491 temp, (0x01ull << 63)); \
2495 temp63 = (temp >> 63) & 0x01; \
2497 temp = (0x01ull << 63) - 1; \
2499 temp = 0x01ull << 63; \
2506 ((temp & MIPSDSP_LHI) >> 32); \
2508 (temp & MIPSDSP_LLO); \
2524 int64_t temp[2]; \
2528 temp[0] = 0; \
2529 temp[1] = 0; \
2552 temp[1] += 1; \
2554 temp[0] = temp_sum; \
2555 temp[1] += tempB[1] + tempA[1]; \
2557 mipsdsp_##func(acc, ac, temp, env); \
2574 int64_t temp[2]; in helper_mulsaq_s_l_pw() local
2605 temp[0] = temp_sum; in helper_mulsaq_s_l_pw()
2606 temp[1] = tempB[1] - tempA[1]; in helper_mulsaq_s_l_pw()
2608 if ((temp[1] & 0x01) == 0) { in helper_mulsaq_s_l_pw()
2609 temp[1] = 0x00; in helper_mulsaq_s_l_pw()
2611 temp[1] = ~0ull; in helper_mulsaq_s_l_pw()
2614 temp_sum = acc[0] + temp[0]; in helper_mulsaq_s_l_pw()
2616 ((uint64_t)temp_sum < (uint64_t)temp[0])) { in helper_mulsaq_s_l_pw()
2620 acc[1] += temp[1]; in helper_mulsaq_s_l_pw()
2711 int64_t temp[2]; \
2715 temp[0] = 0; \
2716 temp[1] = 0; \
2722 temp[0] = (int64_t)temp_mul; \
2723 if (temp[0] >= 0) { \
2724 temp[1] = 0x00; \
2726 temp[1] = ~0ull; \
2732 temp_sum = acc[0] + temp[0]; \
2734 ((uint64_t)temp_sum < (uint64_t)temp[0])) { \
2738 acc[1] += temp[1]; \
2756 int32_t temp; \
2761 temp = mipsdsp_mul_q15_q15(ac, rs_t, rt_t, env); \
2762 temp = mipsdsp_sat32_acc_q31(ac, temp, env); \
2764 acc[0] = (int64_t)(int32_t)temp; \
2787 int64_t temp[2]; \
2791 temp[0] = 0; \
2792 temp[1] = 0; \
2797 temp[0] = mipsdsp_mul_q31_q31(ac, rs_t, rt_t, env); \
2798 if (temp[0] >= 0) { \
2799 temp[1] = 0x00; \
2801 temp[1] = ~0ull; \
2807 temp_sum = acc[0] + temp[0]; \
2809 ((uint64_t)temp_sum < (uint64_t)temp[0])) { \
2813 acc[1] += temp[1]; \
2832 int64_t temp[2]; \
2835 temp[0] = 0x00; \
2836 temp[1] = 0x00; \
2869 temp[1] += 1; \
2871 temp[0] = temp_sum; \
2872 temp[1] += tempBL[1] + tempAL[1]; \
2875 temp_sum = acc[0] + temp[0]; \
2877 ((uint64_t)temp_sum < (uint64_t)temp[0])) { \
2880 temp[0] = temp_sum; \
2881 temp[1] = acc[1] + temp[1]; \
2883 temp_sum = acc[0] - temp[0]; \
2887 temp[0] = temp_sum; \
2888 temp[1] = acc[1] - temp[1]; \
2891 env->active_tc.HI[ac] = temp[1]; \
2892 env->active_tc.LO[ac] = temp[0]; \
2905 int32_t temp; in helper_bitrev() local
2909 temp = rt & MIPSDSP_LO; in helper_bitrev()
2912 rd = (rd << 1) | (temp & 1); in helper_bitrev()
2913 temp = temp >> 1; in helper_bitrev()
2925 target_ulong temp; \
2940 temp = deposit64(rt, pos, size, rs); \
2942 return (target_long)(ret_type)temp; \
2959 uint32_t temp = 0; \
2966 temp |= cc << i; \
2969 return (target_ulong)temp; \
3212 uint64_t temp[3]; in helper_dextr_w() local
3216 mipsdsp_rndrashift_acc(temp, ac, shift, env); in helper_dextr_w()
3218 return (int64_t)(int32_t)(temp[0] >> 1); in helper_dextr_w()
3224 uint64_t temp[3]; in helper_dextr_r_w() local
3228 mipsdsp_rndrashift_acc(temp, ac, shift, env); in helper_dextr_r_w()
3230 temp[0] += 1; in helper_dextr_r_w()
3231 if (temp[0] == 0) { in helper_dextr_r_w()
3232 temp[1] += 1; in helper_dextr_r_w()
3233 if (temp[1] == 0) { in helper_dextr_r_w()
3234 temp[2] += 1; in helper_dextr_r_w()
3238 temp128 = temp[2] & 0x01; in helper_dextr_r_w()
3240 if ((temp128 != 0 || temp[1] != 0) && in helper_dextr_r_w()
3241 (temp128 != 1 || temp[1] != ~0ull)) { in helper_dextr_r_w()
3245 return (int64_t)(int32_t)(temp[0] >> 1); in helper_dextr_r_w()
3251 uint64_t temp[3]; in helper_dextr_rs_w() local
3255 mipsdsp_rndrashift_acc(temp, ac, shift, env); in helper_dextr_rs_w()
3257 temp[0] += 1; in helper_dextr_rs_w()
3258 if (temp[0] == 0) { in helper_dextr_rs_w()
3259 temp[1] += 1; in helper_dextr_rs_w()
3260 if (temp[1] == 0) { in helper_dextr_rs_w()
3261 temp[2] += 1; in helper_dextr_rs_w()
3265 temp128 = temp[2] & 0x01; in helper_dextr_rs_w()
3267 if ((temp128 != 0 || temp[1] != 0) && in helper_dextr_rs_w()
3268 (temp128 != 1 || temp[1] != ~0ull)) { in helper_dextr_rs_w()
3270 temp[0] = 0x0FFFFFFFF; in helper_dextr_rs_w()
3272 temp[0] = 0x0100000000ULL; in helper_dextr_rs_w()
3277 return (int64_t)(int32_t)(temp[0] >> 1); in helper_dextr_rs_w()
3283 uint64_t temp[3]; in helper_dextr_l() local
3287 mipsdsp_rndrashift_acc(temp, ac, shift, env); in helper_dextr_l()
3289 return (temp[1] << 63) | (temp[0] >> 1); in helper_dextr_l()
3295 uint64_t temp[3]; in helper_dextr_r_l() local
3299 mipsdsp_rndrashift_acc(temp, ac, shift, env); in helper_dextr_r_l()
3301 temp[0] += 1; in helper_dextr_r_l()
3302 if (temp[0] == 0) { in helper_dextr_r_l()
3303 temp[1] += 1; in helper_dextr_r_l()
3304 if (temp[1] == 0) { in helper_dextr_r_l()
3305 temp[2] += 1; in helper_dextr_r_l()
3309 temp128 = temp[2] & 0x01; in helper_dextr_r_l()
3311 if ((temp128 != 0 || temp[1] != 0) && in helper_dextr_r_l()
3312 (temp128 != 1 || temp[1] != ~0ull)) { in helper_dextr_r_l()
3316 return (temp[1] << 63) | (temp[0] >> 1); in helper_dextr_r_l()
3322 uint64_t temp[3]; in helper_dextr_rs_l() local
3326 mipsdsp_rndrashift_acc(temp, ac, shift, env); in helper_dextr_rs_l()
3328 temp[0] += 1; in helper_dextr_rs_l()
3329 if (temp[0] == 0) { in helper_dextr_rs_l()
3330 temp[1] += 1; in helper_dextr_rs_l()
3331 if (temp[1] == 0) { in helper_dextr_rs_l()
3332 temp[2] += 1; in helper_dextr_rs_l()
3336 temp128 = temp[2] & 0x01; in helper_dextr_rs_l()
3338 if ((temp128 != 0 || temp[1] != 0) && in helper_dextr_rs_l()
3339 (temp128 != 1 || temp[1] != ~0ull)) { in helper_dextr_rs_l()
3341 temp[1] &= ~0x00ull - 1; in helper_dextr_rs_l()
3342 temp[0] |= ~0x00ull - 1; in helper_dextr_rs_l()
3344 temp[1] |= 0x01; in helper_dextr_rs_l()
3345 temp[0] &= 0x01; in helper_dextr_rs_l()
3350 return (temp[1] << 63) | (temp[0] >> 1); in helper_dextr_rs_l()
3357 int64_t temp, acc; in helper_extr_s_h() local
3364 temp = acc >> shift; in helper_extr_s_h()
3366 if (temp > (int64_t)0x7FFF) { in helper_extr_s_h()
3367 temp = 0x00007FFF; in helper_extr_s_h()
3369 } else if (temp < (int64_t)0xFFFFFFFFFFFF8000ULL) { in helper_extr_s_h()
3370 temp = 0xFFFF8000; in helper_extr_s_h()
3374 return (target_long)(int32_t)(temp & 0xFFFFFFFF); in helper_extr_s_h()
3382 int64_t temp[2]; in helper_dextr_s_h() local
3387 mipsdsp_rashift_acc((uint64_t *)temp, ac, shift, env); in helper_dextr_s_h()
3389 temp127 = (temp[1] >> 63) & 0x01; in helper_dextr_s_h()
3391 if ((temp127 == 0) && (temp[1] > 0 || temp[0] > 32767)) { in helper_dextr_s_h()
3392 temp[0] &= 0xFFFF0000; in helper_dextr_s_h()
3393 temp[0] |= 0x00007FFF; in helper_dextr_s_h()
3396 (temp[1] < 0xFFFFFFFFFFFFFFFFll in helper_dextr_s_h()
3397 || temp[0] < 0xFFFFFFFFFFFF1000ll)) { in helper_dextr_s_h()
3398 temp[0] &= 0xFFFF0000; in helper_dextr_s_h()
3399 temp[0] |= 0x00008000; in helper_dextr_s_h()
3403 return (int64_t)(int16_t)(temp[0] & MIPSDSP_LO); in helper_dextr_s_h()
3412 uint32_t temp; in helper_extp() local
3417 temp = 0; in helper_extp()
3423 temp = (acc >> (start_pos - size)) & (~0U >> (31 - size)); in helper_extp()
3429 return (target_ulong)temp; in helper_extp()
3437 uint32_t temp; in helper_extpdp() local
3441 temp = 0; in helper_extpdp()
3447 temp = extract64(acc, start_pos - size, size + 1); in helper_extpdp()
3455 return (target_ulong)temp; in helper_extpdp()
3466 uint64_t temp; in helper_dextp() local
3468 temp = 0; in helper_dextp()
3479 temp = (tempB << (64 - len)) | (tempA >> len); in helper_dextp()
3480 temp = temp & ((1ULL << (size + 1)) - 1); in helper_dextp()
3486 return temp; in helper_dextp()
3496 uint64_t temp; in helper_dextpdp() local
3498 temp = 0; in helper_dextpdp()
3508 temp = (tempB << (64 - len)) | (tempA >> len); in helper_dextpdp()
3509 temp = temp & ((1ULL << (size + 1)) - 1); in helper_dextpdp()
3516 return temp; in helper_dextpdp()
3524 uint64_t temp, acc; in helper_shilo() local
3537 temp = acc >> rs5_0; in helper_shilo()
3539 temp = acc << -rs5_0; in helper_shilo()
3542 env->active_tc.HI[ac] = (target_ulong)(int32_t)((temp & MIPSDSP_LHI) >> 32); in helper_shilo()
3543 env->active_tc.LO[ac] = (target_ulong)(int32_t)(temp & MIPSDSP_LLO); in helper_shilo()
3689 target_ulong temp; in cpu_rddsp() local
3698 temp = 0x00; in cpu_rddsp()
3703 temp |= dsp & 0x7F; in cpu_rddsp()
3705 temp |= dsp & 0x3F; in cpu_rddsp()
3710 temp |= dsp & 0x1F80; in cpu_rddsp()
3714 temp |= dsp & 0x2000; in cpu_rddsp()
3718 temp |= dsp & 0x00FF0000; in cpu_rddsp()
3723 temp |= dsp & 0xFF000000; in cpu_rddsp()
3725 temp |= dsp & 0x0F000000; in cpu_rddsp()
3730 temp |= dsp & 0x4000; in cpu_rddsp()
3733 return temp; in cpu_rddsp()