Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/spmath PR/50870: David Binderman: Use logical ...
details: https://anonhg.NetBSD.org/src/rev/cb1923da5a9a
branches: trunk
changeset: 343881:cb1923da5a9a
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 29 18:22:06 2016 +0000
description:
PR/50870: David Binderman: Use logical and instead of arithmetic
diffstat:
sys/arch/hppa/spmath/dfsqrt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 46d04e2ae555 -r cb1923da5a9a sys/arch/hppa/spmath/dfsqrt.c
--- a/sys/arch/hppa/spmath/dfsqrt.c Mon Feb 29 18:21:15 2016 +0000
+++ b/sys/arch/hppa/spmath/dfsqrt.c Mon Feb 29 18:22:06 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dfsqrt.c,v 1.5 2012/02/04 17:03:09 skrll Exp $ */
+/* $NetBSD: dfsqrt.c,v 1.6 2016/02/29 18:22:06 christos Exp $ */
/* $OpenBSD: dfsqrt.c,v 1.5 2001/03/29 03:58:17 mickey Exp $ */
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dfsqrt.c,v 1.5 2012/02/04 17:03:09 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dfsqrt.c,v 1.6 2016/02/29 18:22:06 christos Exp $");
#include "../spmath/float.h"
#include "../spmath/dbl_float.h"
@@ -158,7 +158,7 @@
/* check for inexact */
if (Dbl_isnotzero(srcp1,srcp2)) {
- if (!even_exponent & Dbl_islessthan(resultp1,resultp2,srcp1,srcp2)) {
+ if (!even_exponent && Dbl_islessthan(resultp1,resultp2,srcp1,srcp2)) {
Dbl_increment(resultp1,resultp2);
}
guardbit = Dbl_lowmantissap2(resultp2);
Home |
Main Index |
Thread Index |
Old Index