From 677be117394837088129dce9cb7ec219d3662bef Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 7 Nov 2023 21:32:50 +0100 Subject: [PATCH] fenv-exceptions-trapping tests: Comments. * tests/test-fenv-except-trapping-1.c (main): Add a comment. --- ChangeLog | 5 +++++ tests/test-fenv-except-trapping-1.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b93b28f326..0f665556d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-11-07 Bruno Haible + + fenv-exceptions-trapping tests: Comments. + * tests/test-fenv-except-trapping-1.c (main): Add a comment. + 2023-11-07 Paul Eggert malloca: pacify -Wcheri-provenance diff --git a/tests/test-fenv-except-trapping-1.c b/tests/test-fenv-except-trapping-1.c index 7c67a06ec9..e717bb1739 100644 --- a/tests/test-fenv-except-trapping-1.c +++ b/tests/test-fenv-except-trapping-1.c @@ -44,7 +44,11 @@ main () unsigned int a, b; /* Run through all possible valid arguments to feenableexcept and - fedisableexcept. */ + fedisableexcept. + An alternative way of coding this iteration, without the uint_to_exceptions + function, would be using the trick from + Jörg Arndt: Matters Computational + § 1.25.1 Generating bit subsets of a given word */ for (a = 0; a < 0x20; a++) for (b = 0; b < 0x20; b++) { -- 2.39.5