artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c958507
)
use FE_ALL_EXCEPT not _ROUND_MASK when masking fcsr exception bits
author
jsg
<jsg@openbsd.org>
Tue, 11 May 2021 12:05:13 +0000
(12:05 +0000)
committer
jsg
<jsg@openbsd.org>
Tue, 11 May 2021 12:05:13 +0000
(12:05 +0000)
lib/libm/arch/riscv64/fenv.c
patch
|
blob
|
history
diff --git
a/lib/libm/arch/riscv64/fenv.c
b/lib/libm/arch/riscv64/fenv.c
index
635cb0e
..
56b9545
100644
(file)
--- a/
lib/libm/arch/riscv64/fenv.c
+++ b/
lib/libm/arch/riscv64/fenv.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fenv.c,v 1.
1 2021/04/27 00:31:34 drahn
Exp $ */
+/* $OpenBSD: fenv.c,v 1.
2 2021/05/11 12:05:13 jsg
Exp $ */
/*-
* Copyright (c) 2004-2005 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@
-196,7
+196,7
@@
feholdexcept(fenv_t *envp)
__get_fcsr(r);
*envp = r;
- r &= ~
_ROUND_MASK
;
+ r &= ~
FE_ALL_EXCEPT
;
__set_fcsr(r);
return (0);