This commit is contained in:
Bruce Hill 2024-08-16 13:13:35 -04:00
parent 2d3c114435
commit 436c6d4457

View File

@ -128,9 +128,9 @@ static inline Int_t Int$times(Int_t x, Int_t y) {
static inline Int_t Int$divided_by(Int_t x, Int_t y) {
if (__builtin_expect(((x.small & y.small) & 1) != 0, 1)) {
const int64_t z = 4*(x.small>>1) / (y.small>>1);
const int64_t z = ((x.small>>1) / (y.small>>1)) << 2;
if (__builtin_expect(z == (int32_t)z, 1))
return (Int_t){.small=z+1};
return (Int_t){.small=z|1};
}
return Int$slow_divided_by(x, y);
}