Re: [PATCH] wide-int: Fix mul_internal overflow handling [PR113753]

2024-02-06 Thread Richard Biener
On Tue, 6 Feb 2024, Jakub Jelinek wrote: > Hi! > > As the following testcases show, the overflow (needs_overflow) and high > handling in wi::mul_internal seem to only work correctly for either > small precisions (less than or equal to 32, that is handled by earlier > simpler code, not the full

[PATCH] wide-int: Fix mul_internal overflow handling [PR113753]

2024-02-06 Thread Jakub Jelinek
Hi! As the following testcases show, the overflow (needs_overflow) and high handling in wi::mul_internal seem to only work correctly for either small precisions (less than or equal to 32, that is handled by earlier simpler code, not the full Knuth's multiplication algorithm) or for precisions