Date: Tue, 13 Jan 2026 15:25:38 -0800
On Tuesday, 13 January 2026 13:49:30 Pacific Standard Time Hans Ã…berg wrote:
> The traditional multiprecision division algorithm uses a loop in order to be
> able to handle all multiword sizes. For 2-by-1 word division, it can be
> removed by hand, and I suggest doing it for higher multiword sizes by
> recursive templates. So the loop can be removed, it is only very
> complicated to do so.
And have you done that complicated thing? And if so, why can't the compiler do
the same? What is the reason it cannot do the same?
> The traditional multiprecision division algorithm uses a loop in order to be
> able to handle all multiword sizes. For 2-by-1 word division, it can be
> removed by hand, and I suggest doing it for higher multiword sizes by
> recursive templates. So the loop can be removed, it is only very
> complicated to do so.
And have you done that complicated thing? And if so, why can't the compiler do
the same? What is the reason it cannot do the same?
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel Data Center - Platform & Sys. Eng.
Received on 2026-01-13 23:25:50
