Revision d49b8e0b target-s390x/int_helper.c
b/target-s390x/int_helper.c | ||
---|---|---|
97 | 97 |
ret = al / b; |
98 | 98 |
} else { |
99 | 99 |
/* ??? Move i386 idivq helper to host-utils. */ |
100 |
#if HOST_LONG_BITS == 64 && defined(__GNUC__) |
|
101 |
/* assuming 64-bit hosts have __uint128_t */ |
|
100 |
#ifdef CONFIG_INT128 |
|
102 | 101 |
__uint128_t a = ((__uint128_t)ah << 64) | al; |
103 | 102 |
__uint128_t q = a / b; |
104 | 103 |
env->retxl = a % b; |
Also available in: Unified diff