mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 11:22:52 +00:00
Fix compilation on 32 bits hosts (pb reported by Thiemo Seufer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2521 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3430b0be36
commit
1698b74161
@ -720,7 +720,7 @@ void OPPROTO op_check_addo (void)
|
|||||||
void OPPROTO op_check_addo_64 (void)
|
void OPPROTO op_check_addo_64 (void)
|
||||||
{
|
{
|
||||||
if (likely(!(((uint64_t)T2 ^ (uint64_t)T1 ^ UINT64_MAX) &
|
if (likely(!(((uint64_t)T2 ^ (uint64_t)T1 ^ UINT64_MAX) &
|
||||||
((uint64_t)T2 ^ (uint64_t)T0) & (1UL << 63)))) {
|
((uint64_t)T2 ^ (uint64_t)T0) & (1ULL << 63)))) {
|
||||||
xer_ov = 0;
|
xer_ov = 0;
|
||||||
} else {
|
} else {
|
||||||
xer_so = 1;
|
xer_so = 1;
|
||||||
|
@ -313,12 +313,11 @@ static inline int _do_cntlzd (uint64_t val)
|
|||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
uint32_t tmp;
|
|
||||||
/* Make it easier on 32 bits host machines */
|
/* Make it easier on 32 bits host machines */
|
||||||
if (!(val >> 32))
|
if (!(val >> 32))
|
||||||
cnt = cntlzw(val) + 32;
|
cnt = _do_cntlzw(val) + 32;
|
||||||
else
|
else
|
||||||
cnt = cntlzw(val >> 32);
|
cnt = _do_cntlzw(val >> 32);
|
||||||
#endif
|
#endif
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user