HomeFreeBSD

RISC-V: Fix feenableexcept return value

Description

RISC-V: Fix feenableexcept return value

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.

Reviewed By: mhorne
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D29386

(cherry picked from commit dd5ed53a2f93a5a54efe96bed6bbd0f18b6bdbe2)

Details

Provenance
arichardsonAuthored on Mar 25 2021, 11:15 AM
Reviewer
mhorne
Differential Revision
D29386: RISC-V: Fix feenableexcept return value
Parents
rGd435574abffd: ng_macfilter_test: Skip rather than fail if there is no network
Branches
Unknown
Tags
Unknown