This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCHv2 06/14] Replace M_PI2l with pi_2_d in

On Mon, 23 May 2016, Paul E. Murphy wrote:

> That seems reasonable.  Though, wouldn't it be much simpler to punt
> these tests to auto-libm-test-in/gen-auto-libm-tests.c and have it more
> accurately compute correctly rounded constants for each format and
> rounding mode?  That also seems to imply the inputs may also be
> sensitive to rounding mode.

These are[*] tests with infinities and NaNs as inputs, or as at least one 
exact part of a complex result.  gen-auto-libm-tests doesn't currently 
handle infinities or NaNs as inputs or exact results (as opposed to 
overflowing results), and I'm not particularly confident that MPC handles 
all such cases the way we want (taking due account of changes in C11 and 
in DRs).

[*] Except for tests of complex inverse trig and hyperbolic functions with 
finite inputs and results, not moved to auto-libm-test-in because the MPC 
functions are very slow in some cases and so moving them would make 
gen-auto-libm-tests take probably hours to run.

Joseph S. Myers

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]