Skip to content

gh-153740: refine test for _Float16 (check support from libm) - #156815

Open
skirpichev wants to merge 2 commits into
python:mainfrom
skirpichev:fix-Float16-check/153740
Open

gh-153740: refine test for _Float16 (check support from libm)#156815
skirpichev wants to merge 2 commits into
python:mainfrom
skirpichev:fix-Float16-check/153740

Conversation

@skirpichev

@skirpichev skirpichev commented Sep 2, 2026

Copy link
Copy Markdown
Member

@skirpichev
skirpichev force-pushed the fix-Float16-check/153740 branch from deebbb7 to 0567678 Compare September 2, 2026 11:07
@python python deleted a comment from bedevere-bot Sep 2, 2026
@skirpichev

Copy link
Copy Markdown
Member Author

!buildbot freebsd

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @skirpichev for commit 0567678 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F156815%2Fmerge

The command will test the builders whose names match following regular expression: freebsd

The builders matched are:

  • AMD64 FreeBSD Refleaks PR
  • AMD64 FreeBSD16 PR
  • AMD64 FreeBSD15 PR
  • AMD64 FreeBSD14 PR

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested your change manually on FreeBSD: it works as expected.

Please update the comment to explain why you test isinf(). You can do that once the buildbot completes.

Comment thread configure.ac Outdated
int main(void)
{
_Float16 val = 1.0f16;
int test = !isfinite(val) || isinf(val) || isnan(val);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please complete # Check for native half-float type (_Float16). comment to explain why you test these function calls. Something like:

# Check for native half-float type (_Float16).
# Check also for isinf(_Float16): it's not supported on FreeBSD 15.

@skirpichev
skirpichev requested a review from vstinner September 2, 2026 12:59
@skirpichev skirpichev removed their assignment Sep 2, 2026
@skirpichev
skirpichev marked this pull request as ready for review September 2, 2026 12:59
@skirpichev

Copy link
Copy Markdown
Member Author

I tested your change manually on FreeBSD: it works as expected.

Yes, failures on buildbots looks unrelated.

Please complete # Check for native half-float type (_Float16). comment to explain why you test these function calls.

I've added inline comments on test. We don't use anything beyond isinf/isnan from the libm, so I think it's fine.

@skirpichev

Copy link
Copy Markdown
Member Author

!buildbot FreeBSD14

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @skirpichev for commit 8daf2de 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F156815%2Fmerge

The command will test the builders whose names match following regular expression: FreeBSD14

The builders matched are:

  • AMD64 FreeBSD14 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants