Date: Sat, 24 Aug 2024 07:49:33 -0700
On Saturday 24 August 2024 06:37:45 GMT-7 Phil Endecott via Std-Proposals
wrote:
> The paper does say, on page
> 6, that "we don't
> have to provide replacements for both M_PI and M_PI_2 and M_PI_4. The
> user will be
> able to divide the M_PI replacement by 2 and by 4 ...". But there isn't
> any rationale
> for why the provided constants should be limited only to those that the
> user cannot
> easily form from other constants. Does anyone recall the discussion?
Divisions and multiplications by powers of 2 are exact in IEEE 754 binary
floating points. There's no loss of precision in the process nor any precision
lacking in the result.
wrote:
> The paper does say, on page
> 6, that "we don't
> have to provide replacements for both M_PI and M_PI_2 and M_PI_4. The
> user will be
> able to divide the M_PI replacement by 2 and by 4 ...". But there isn't
> any rationale
> for why the provided constants should be limited only to those that the
> user cannot
> easily form from other constants. Does anyone recall the discussion?
Divisions and multiplications by powers of 2 are exact in IEEE 754 binary
floating points. There's no loss of precision in the process nor any precision
lacking in the result.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel DCAI Platform & System Engineering
Received on 2024-08-24 14:49:39