Module Name:    src
Committed By:   christos
Date:           Mon Feb 29 18:22:06 UTC 2016

Modified Files:
        src/sys/arch/hppa/spmath: dfsqrt.c

Log Message:
PR/50870: David Binderman: Use logical and instead of arithmetic


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hppa/spmath/dfsqrt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hppa/spmath/dfsqrt.c
diff -u src/sys/arch/hppa/spmath/dfsqrt.c:1.5 src/sys/arch/hppa/spmath/dfsqrt.c:1.6
--- src/sys/arch/hppa/spmath/dfsqrt.c:1.5	Sat Feb  4 12:03:09 2012
+++ src/sys/arch/hppa/spmath/dfsqrt.c	Mon Feb 29 13:22:06 2016
@@ -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 @@ dbl_fsqrt(dbl_floating_point *srcptr, db
 
 	/* 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);

Reply via email to