[PATCH v3 3/5] math: Improve fmod
Joseph Myers
joseph@codesourcery.com
Thu Mar 16 23:23:34 GMT 2023
On Thu, 16 Mar 2023, Adhemerval Zanella via Libc-alpha wrote:
> +#if TEST_COND_binary64
> + TEST_ff_f (fmod, 0x0.cded0a47373e9p-1022, 0x0.3212f5b8c8c16p-1022, 0x0.05a1336414391p-1022, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
> + TEST_ff_f (fmod, 0x0.cded0a47373e9p-1022, -0x0.3212f5b8c8c16p-1022, 0x0.05a1336414391p-1022, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
> + TEST_ff_f (fmod, -0x0.cded0a47373e9p-1022, 0x0.3212f5b8c8c16p-1022, -0x0.05a1336414391p-1022, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
> + TEST_ff_f (fmod, -0x0.cded0a47373e9p-1022, -0x0.3212f5b8c8c16p-1022, -0x0.05a1336414391p-1022, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
> +#endif
Similarly, these tests should be valid for all formats with at least the
range and precision of binary64 (i.e. !TEST_COND_binary32), not just for
binary64.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list