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
- rG0eafcef4552c: RISC-V: Fix feenableexcept return value
rGdd5ed53a2f93: RISC-V: Fix feenableexcept return value
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - 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) ?