From 8397e332fcaa95b0d1c33ae09b31b4dc29d14f6d Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 11 May 2021 12:05:13 +0000 Subject: [PATCH] use FE_ALL_EXCEPT not _ROUND_MASK when masking fcsr exception bits --- lib/libm/arch/riscv64/fenv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1