Skip to content

Commit 188b8f4

Browse files
riscv: Fix feholdexcept()
1 parent 3cfad14 commit 188b8f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/openlibm_fenv_riscv.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,11 @@ __fenv_static inline int
190190
feholdexcept(fenv_t *__envp)
191191
{
192192

193+
__rfs(*__envp);
194+
193195
/* No exception traps. */
194196

195-
return (-1);
197+
return (0);
196198
}
197199

198200
__fenv_static inline int

0 commit comments

Comments
 (0)