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.
Details
Details
- Reviewers
mhorne - Group Reviewers
riscv - Commits
- R10:0eafcef4552c: RISC-V: Fix feenableexcept return value
R10:dd5ed53a2f93: RISC-V: Fix feenableexcept return value
Diff Detail
Diff Detail
- Repository
- R10 FreeBSD src repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
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) ?