[PATCH v4] math: Refactor how to use libm-test-ulps

Joseph Myers josmyers@redhat.com
Tue Mar 11 19:29:06 GMT 2025


On Tue, 28 Jan 2025, Adhemerval Zanella wrote:

> This patch removes all arch-specific libm-test-ulps, adds system generic

The libm-test-ulps-name files should also be removed as no longer used.

> +A more comprehensive analysis of @theglibc{} math functions precision could
> +be found in 'Accuracy of Mathematical Functions in Single, Double, Double
> +Extended, and Quadruple Precision'; Brian Gladman, Vincenzo Innocente,
> +John Mather, and Paul Zimmermann at 
> +@url{<https://inria.hal.science/hal-03141101>}.  It does not cover complex
> +functions, nor @code{jn}/@code{yn}, and it is only for x86_64, and for
> +rounding to nearest, and does not cover any architecture variations (in
> +particular IBM long double is out of scope).

@code{long double}.

> +For complex functions, some analysis of @theglibc{} math functions can be
> +found in 'Accuracy of Complex Mathematical Operations and Functions in Single
> +and Double Precision'; Paul Caprioli, Vincenzo Innocente, Paul Zimmermann
> +at @url{https://inria.hal.science/hal-04714173}.  It only covers float
> +and double, only for x86_64, and for rounding to nearest, and does not
> +cover any architecture variations.

@code{float}, @code{double}.

> @@ -668,12 +629,11 @@ def main():
>      args = parser.parse_args()
>      ulps = Ulps()
>      if args.ulps_file is not None:
> -        ulps.read(args.ulps_file)
> +        # Iterate in reverse order so arch specific definitions can overrides
> +        # the generic ones.

s/overrides/override/

OK with the fixes noted above.

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list