Home
last modified time | relevance | path

Searched refs:toUChar (Results 1 – 19 of 19) sorted by relevance

/external/valgrind/main/VEX/priv/
Dguest_generic_x87.c91 c = toUChar( c & ~(1 << (n&7)) ); in write_bit_array()
92 c = toUChar( c | ((b&1) << (n&7)) ); in write_bit_array()
111 sign = toUChar( (f64[7] >> 7) & 1 ); in convert_f64le_to_f80le()
132 f80[9] = toUChar( sign << 7 ); in convert_f64le_to_f80le()
163 f80[9] = toUChar( (sign << 7) | ((bexp >> 8) & 0xFF) ); in convert_f64le_to_f80le()
164 f80[8] = toUChar( bexp & 0xFF ); in convert_f64le_to_f80le()
180 f80[9] = toUChar( (sign << 7) | 0x7F ); in convert_f64le_to_f80le()
198 f80[9] = toUChar( (sign << 7) | 0x7F ); in convert_f64le_to_f80le()
207 f80[9] = toUChar( (sign << 7) | 0x7F ); in convert_f64le_to_f80le()
221 f80[9] = toUChar( (sign << 7) | ((bexp >> 8) & 0xFF) ); in convert_f64le_to_f80le()
[all …]
Dhost_generic_simd64.c103 return toUChar(0xFF & (hi32 >> 24)); in sel8x8_7()
107 return toUChar(0xFF & (hi32 >> 16)); in sel8x8_6()
111 return toUChar(0xFF & (hi32 >> 8)); in sel8x8_5()
115 return toUChar(0xFF & (hi32 >> 0)); in sel8x8_4()
119 return toUChar(0xFF & (lo32 >> 24)); in sel8x8_3()
123 return toUChar(0xFF & (lo32 >> 16)); in sel8x8_2()
127 return toUChar(0xFF & (lo32 >> 8)); in sel8x8_1()
131 return toUChar(0xFF & (lo32 >> 0)); in sel8x8_0()
136 return toUChar((w64 >> (8*ix)) & 0xFF); in index8x8()
242 return toUChar(xx==yy ? 0xFF : 0); in cmpeq8()
[all …]
Dguest_ppc_helpers.c261 vex_state->guest_CR##_n##_0 = toUChar(t & 1); \ in LibVEX_GuestPPC32_put_CR()
262 vex_state->guest_CR##_n##_321 = toUChar(t & (7<<1)); \ in LibVEX_GuestPPC32_put_CR()
288 vex_state->guest_CR##_n##_0 = toUChar(t & 1); \ in LibVEX_GuestPPC64_put_CR()
289 vex_state->guest_CR##_n##_321 = toUChar(t & (7<<1)); \ in LibVEX_GuestPPC64_put_CR()
334 vex_state->guest_XER_BC = toUChar(xer_native & 0xFF); in LibVEX_GuestPPC32_put_XER()
335 vex_state->guest_XER_SO = toUChar((xer_native >> 31) & 0x1); in LibVEX_GuestPPC32_put_XER()
336 vex_state->guest_XER_OV = toUChar((xer_native >> 30) & 0x1); in LibVEX_GuestPPC32_put_XER()
337 vex_state->guest_XER_CA = toUChar((xer_native >> 29) & 0x1); in LibVEX_GuestPPC32_put_XER()
345 vex_state->guest_XER_BC = toUChar(xer_native & 0xFF); in LibVEX_GuestPPC64_put_XER()
346 vex_state->guest_XER_SO = toUChar((xer_native >> 31) & 0x1); in LibVEX_GuestPPC64_put_XER()
[all …]
Dhost_amd64_defs.c913 i->Ain.SseUComIS.sz = toUChar(sz); in AMD64Instr_SseUComIS()
923 i->Ain.SseSI2SF.szS = toUChar(szS); in AMD64Instr_SseSI2SF()
924 i->Ain.SseSI2SF.szD = toUChar(szD); in AMD64Instr_SseSI2SF()
934 i->Ain.SseSF2SI.szS = toUChar(szS); in AMD64Instr_SseSF2SI()
935 i->Ain.SseSF2SI.szD = toUChar(szD); in AMD64Instr_SseSF2SI()
965 i->Ain.SseLdSt.sz = toUChar(sz); in AMD64Instr_SseLdSt()
1963 return toUChar(n & 7); in iregBits210()
1974 return toUChar((n >> 3) & 1); in iregBit3()
1985 return toUChar(n); in iregBits3210()
2005 return toUChar( ((mod & 3) << 6) in mkModRegRM()
[all …]
Dhost_x86_defs.c821 i->Xin.SseLdzLO.sz = toUChar(sz); in X86Instr_SseLdzLO()
1750 return toUChar(n); in iregNo()
1775 return toUChar( ((mod & 3) << 6) in mkModRegRM()
1782 return toUChar( ((shift & 3) << 6) in mkSIB()
1789 *p++ = toUChar( w32 & 0x000000FF); in emit32()
1790 *p++ = toUChar((w32 >> 8) & 0x000000FF); in emit32()
1791 *p++ = toUChar((w32 >> 16) & 0x000000FF); in emit32()
1792 *p++ = toUChar((w32 >> 24) & 0x000000FF); in emit32()
1840 *p++ = toUChar(am->Xam.IR.imm & 0xFF); in doAMode_M()
1852 *p++ = toUChar(am->Xam.IR.imm & 0xFF); in doAMode_M()
[all …]
Dguest_amd64_helpers.c639 case AMD64G_CC_OP_UMULB: ACTIONS_UMUL( 8, UChar, toUChar, in amd64g_calculate_rflags_all_WRK()
648 case AMD64G_CC_OP_SMULB: ACTIONS_SMUL( 8, Char, toUChar, in amd64g_calculate_rflags_all_WRK()
1399 sign = toUChar( (f64[7] >> 7) & 1 ); in amd64g_calculate_FXAM()
1603 addrC[4] = toUChar(summary_tags); /* FTW: tag summary byte */ in amd64g_dirtyhelper_FXSAVE()
2608 return toUChar(xx>yy ? xx-yy : yy-xx); in abdU8()
2634 return toUChar(hi32 >> 24); in sel8x8_7()
2638 return toUChar(hi32 >> 16); in sel8x8_6()
2642 return toUChar(hi32 >> 8); in sel8x8_5()
2646 return toUChar(hi32 >> 0); in sel8x8_4()
2650 return toUChar(lo32 >> 24); in sel8x8_3()
[all …]
Dguest_x86_helpers.c548 case X86G_CC_OP_UMULB: ACTIONS_UMUL( 8, UChar, toUChar, in x86g_calculate_eflags_all_WRK()
555 case X86G_CC_OP_SMULB: ACTIONS_SMUL( 8, Char, toUChar, in x86g_calculate_eflags_all_WRK()
1379 sign = toUChar( (f64[7] >> 7) & 1 ); in x86g_calculate_FXAM()
1695 addrC[4] = toUChar(summary_tags); /* FTW: tag summary byte */ in x86g_dirtyhelper_FXSAVE()
2433 return toUChar(xx>yy ? xx-yy : yy-xx); in abdU8()
2459 return toUChar(hi32 >> 24); in sel8x8_7()
2463 return toUChar(hi32 >> 16); in sel8x8_6()
2467 return toUChar(hi32 >> 8); in sel8x8_5()
2471 return toUChar(hi32 >> 0); in sel8x8_4()
2475 return toUChar(lo32 >> 24); in sel8x8_3()
[all …]
Dhost_generic_simd128.c83 return toUChar((xx > yy) ? xx : yy); in max8S()
88 return toUChar((xx < yy) ? xx : yy); in min8S()
104 return toUChar(((Char)v) >> n); in sar8()
Dguest_ppc_toIR.c237 return toUChar( IFIELD( instr, 26, 6 ) ); in ifieldOPC()
257 return toUChar( IFIELD( instr, 21, 5 ) ); in ifieldRegDS()
262 return toUChar( IFIELD( instr, 16, 5 ) ); in ifieldRegA()
267 return toUChar( IFIELD( instr, 11, 5 ) ); in ifieldRegB()
272 return toUChar( IFIELD( instr, 6, 5 ) ); in ifieldRegC()
277 return toUChar( IFIELD( instr, 10, 1 ) ); in ifieldBIT10()
282 return toUChar( IFIELD( instr, 1, 1 ) ); in ifieldBIT1()
287 return toUChar( instr & 0x1 ); in ifieldBIT0()
405 return toUChar((((Int)x) << 27) >> 27); in extend_s_5to8()
1319 mkU8(toUChar(3-off)) ), in getCRbit()
[all …]
Dir_opt.c970 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
986 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
1034 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
1061 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
1171 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
1193 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
1215 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
1232 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
1249 e2 = IRExpr_Const(IRConst_U8(toUChar( in fold_Expr()
Dhost_ppc_isel.c1177 addInstr(env, PPCInstr_Load( toUChar(sizeofIRType(ty)), in iselWordExpr_R_wrk()
1872 addInstr(env, PPCInstr_Load( toUChar(sizeofIRType(ty)), in iselWordExpr_R_wrk()
1885 addInstr(env, PPCInstr_Load( toUChar(8), in iselWordExpr_R_wrk()
1890 addInstr(env, PPCInstr_Load( toUChar(4), in iselWordExpr_R_wrk()
3770 addInstr(env, PPCInstr_Store( toUChar(sizeofIRType(tyd)), in iselStmt()
3826 addInstr(env, PPCInstr_Store( toUChar(sizeofIRType(ty)), in iselStmt()
3870 addInstr(env, PPCInstr_Store( toUChar(8), in iselStmt()
3876 addInstr(env, PPCInstr_Store( toUChar(4), in iselStmt()
Dguest_x86_toIR.c371 return toUChar(v); in getUChar()
1488 mod_reg_rm = toUChar(mod_reg_rm | (mod_reg_rm >> 3)); in disAMode()
1510 { UChar rm = toUChar(mod_reg_rm & 7); in disAMode()
1524 { UChar rm = toUChar(mod_reg_rm & 7); in disAMode()
1570 UChar scale = toUChar((sib >> 6) & 3); in disAMode()
1571 UChar index_r = toUChar((sib >> 3) & 7); in disAMode()
1572 UChar base_r = toUChar(sib & 7); in disAMode()
1630 UChar scale = toUChar((sib >> 6) & 3); in disAMode()
1631 UChar index_r = toUChar((sib >> 3) & 7); in disAMode()
1632 UChar base_r = toUChar(sib & 7); in disAMode()
[all …]
Dguest_amd64_toIR.c2289 mod_reg_rm = toUChar(mod_reg_rm | (mod_reg_rm >> 3)); in disAMode()
2299 { UChar rm = toUChar(mod_reg_rm & 7); in disAMode()
2311 { UChar rm = toUChar(mod_reg_rm & 7); in disAMode()
2329 { UChar rm = toUChar(mod_reg_rm & 7); in disAMode()
2382 UChar scale = toUChar((sib >> 6) & 3); in disAMode()
2383 UChar index_r = toUChar((sib >> 3) & 7); in disAMode()
2384 UChar base_r = toUChar(sib & 7); in disAMode()
2453 UChar scale = toUChar((sib >> 6) & 3); in disAMode()
2454 UChar index_r = toUChar((sib >> 3) & 7); in disAMode()
2455 UChar base_r = toUChar(sib & 7); in disAMode()
[all …]
Dhost_ppc_defs.c1601 UChar ch_sz = toUChar( (sz == 8) ? 'b' : (sz == 16) ? 'h' : 'w' ); in ppPPCInstr()
2236 *p++ = toUChar((w32 >> 24) & 0x000000FF); in emit32()
2237 *p++ = toUChar((w32 >> 16) & 0x000000FF); in emit32()
2238 *p++ = toUChar((w32 >> 8) & 0x000000FF); in emit32()
2239 *p++ = toUChar((w32) & 0x000000FF); in emit32()
Dhost_x86_isel.c1013 toUChar(sz), rf, zero_esp)); in iselIntExpr_R_wrk()
1297 toUChar(ty==Ity_I8 ? 1 : 2), in iselIntExpr_R_wrk()
3645 addInstr(env, X86Instr_Store( toUChar(tyd==Ity_I8 ? 1 : 2), in iselStmt()
3698 toUChar(ty==Ity_I8 ? 1 : 2), in iselStmt()
Dhost_arm_defs.c2487 return toUChar(n); in iregNo()
2499 return toUChar(n); in dregNo()
2509 return toUChar(n); in fregNo()
2519 return toUChar(n); in qregNo()
Dhost_amd64_isel.c1696 toUChar(ty==Ity_I8 ? 1 : (ty==Ity_I16 ? 2 : 4)), in iselIntExpr_R_wrk()
3767 toUChar(tyd==Ity_I8 ? 1 : (tyd==Ity_I16 ? 2 : 4)), in iselStmt()
3811 toUChar(ty==Ity_I8 ? 1 : (ty==Ity_I16 ? 2 : 4)), in iselStmt()
/external/icu4c/test/cintltst/
Dcbiapts.c77 static UChar* toUChar(const char *src, void **freeHook) { in toUChar() function
513 ruleSourceU = toUChar(rules, &strCleanUp); in testOpenRules()
552 uData = toUChar(data, &freeHook); in TestBreakIteratorRules()
596 uRules = toUChar(rules, &freeHook); in TestBreakIteratorRuleError()
/external/valgrind/main/VEX/pub/
Dlibvex_basictypes.h91 static inline UChar toUChar ( Int x ) { in toUChar() function