Page MenuHomeFreeBSD

RISC-V: Fix feenableexcept return value
ClosedPublic

Authored by arichardson on Mar 23 2021, 9:23 AM.
Tags
None
Referenced Files
F107178939: D29386.diff
Sat, Jan 11, 7:51 AM
Unknown Object (File)
Dec 10 2024, 2:48 AM
Unknown Object (File)
Dec 4 2024, 11:38 AM
Unknown Object (File)
Oct 24 2024, 2:56 AM
Unknown Object (File)
Oct 23 2024, 8:42 AM
Unknown Object (File)
Oct 2 2024, 5:38 PM
Unknown Object (File)
Sep 23 2024, 6:27 AM
Unknown Object (File)
Sep 10 2024, 7:35 PM
Subscribers

Details

Summary

The man page says "The feenableexcept(), fedisableexcept(), and
fegetexcept() functions return a bitmap of the exceptions that were
unmasked prior to the call.", so we should return zero not -1.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38002
Build 34891: arc lint + arc unit

Event Timeline

mhorne added a subscriber: mhorne.

I've wondered about this case before, but this solution seems correct.

How well do we do running the fenv tests with this change (and your other recent commits) ?

This revision is now accepted and ready to land.Mar 23 2021, 1:12 PM

I've wondered about this case before, but this solution seems correct.

How well do we do running the fenv tests with this change (and your other recent commits) ?

This fixes one of the fenv tests. There are more failures that I need to look into.

This revision was automatically updated to reflect the committed changes.