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/50871: David Binderman: use logical ...
details: https://anonhg.NetBSD.org/src/rev/162bccb26387
branches: trunk
changeset: 343879:162bccb26387
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 29 18:20:31 2016 +0000
description:
PR/50871: David Binderman: use logical and instead of arithmetic
diffstat:
sys/arch/hppa/spmath/sfsqrt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 456430f25fb1 -r 162bccb26387 sys/arch/hppa/spmath/sfsqrt.c
--- a/sys/arch/hppa/spmath/sfsqrt.c Mon Feb 29 18:19:46 2016 +0000
+++ b/sys/arch/hppa/spmath/sfsqrt.c Mon Feb 29 18:20:31 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sfsqrt.c,v 1.5 2012/02/04 17:03:10 skrll Exp $ */
+/* $NetBSD: sfsqrt.c,v 1.6 2016/02/29 18:20:31 christos Exp $ */
/* $OpenBSD: sfsqrt.c,v 1.5 2001/03/29 03:58:19 mickey Exp $ */
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sfsqrt.c,v 1.5 2012/02/04 17:03:10 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sfsqrt.c,v 1.6 2016/02/29 18:20:31 christos Exp $");
#include "../spmath/float.h"
#include "../spmath/sgl_float.h"
@@ -150,7 +150,7 @@
/* check for inexact */
if (Sgl_isnotzero(src)) {
- if (!even_exponent & Sgl_islessthan(result,src))
+ if (!even_exponent && Sgl_islessthan(result,src))
Sgl_increment(result);
guardbit = Sgl_lowmantissa(result);
Sgl_rightshiftby1(result);
Home |
Main Index |
Thread Index |
Old Index