From: jsg Date: Tue, 11 May 2021 12:05:13 +0000 (+0000) Subject: use FE_ALL_EXCEPT not _ROUND_MASK when masking fcsr exception bits X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8397e332fcaa95b0d1c33ae09b31b4dc29d14f6d;p=openbsd use FE_ALL_EXCEPT not _ROUND_MASK when masking fcsr exception bits --- diff --git a/lib/libm/arch/riscv64/fenv.c b/lib/libm/arch/riscv64/fenv.c index 635cb0eab50..56b9545f23b 100644 --- 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 * 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);