Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/complex PR/44663: Corinna Vinschen: Fix misplaced p...
details: https://anonhg.NetBSD.org/src/rev/76561cc35b58
branches: trunk
changeset: 762831:76561cc35b58
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 02 13:24:43 2011 +0000
description:
PR/44663: Corinna Vinschen: Fix misplaced parenthesis that produces the wrong
result.
diffstat:
lib/libm/complex/cproj.c | 6 +++---
lib/libm/complex/cprojf.c | 6 +++---
lib/libm/complex/cprojl.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r f992f4a5e795 -r 76561cc35b58 lib/libm/complex/cproj.c
--- a/lib/libm/complex/cproj.c Wed Mar 02 13:11:52 2011 +0000
+++ b/lib/libm/complex/cproj.c Wed Mar 02 13:24:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cproj.c,v 1.3 2010/09/20 17:51:38 christos Exp $ */
+/* $NetBSD: cproj.c,v 1.4 2011/03/02 13:24:43 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cproj.c,v 1.3 2010/09/20 17:51:38 christos Exp $");
+__RCSID("$NetBSD: cproj.c,v 1.4 2011/03/02 13:24:43 christos Exp $");
#include <complex.h>
#include <math.h>
@@ -50,7 +50,7 @@
{
double_complex w = { .z = z };
- if (isinf(creal(z) || isinf(cimag(z)))) {
+ if (isinf(creal(z)) || isinf(cimag(z))) {
#ifdef __INFINITY
REAL_PART(w) = __INFINITY;
#else
diff -r f992f4a5e795 -r 76561cc35b58 lib/libm/complex/cprojf.c
--- a/lib/libm/complex/cprojf.c Wed Mar 02 13:11:52 2011 +0000
+++ b/lib/libm/complex/cprojf.c Wed Mar 02 13:24:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cprojf.c,v 1.3 2010/09/20 17:51:38 christos Exp $ */
+/* $NetBSD: cprojf.c,v 1.4 2011/03/02 13:24:43 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cprojf.c,v 1.3 2010/09/20 17:51:38 christos Exp $");
+__RCSID("$NetBSD: cprojf.c,v 1.4 2011/03/02 13:24:43 christos Exp $");
#include <complex.h>
#include <math.h>
@@ -51,7 +51,7 @@
{
float_complex w = { .z = z };
- if (isinf(crealf(z) || isinf(cimagf(z)))) {
+ if (isinf(crealf(z)) || isinf(cimagf(z))) {
#ifdef __INFINITY
REAL_PART(w) = __INFINITY;
#else
diff -r f992f4a5e795 -r 76561cc35b58 lib/libm/complex/cprojl.c
--- a/lib/libm/complex/cprojl.c Wed Mar 02 13:11:52 2011 +0000
+++ b/lib/libm/complex/cprojl.c Wed Mar 02 13:24:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cprojl.c,v 1.4 2010/09/20 17:51:38 christos Exp $ */
+/* $NetBSD: cprojl.c,v 1.5 2011/03/02 13:24:43 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cprojl.c,v 1.4 2010/09/20 17:51:38 christos Exp $");
+__RCSID("$NetBSD: cprojl.c,v 1.5 2011/03/02 13:24:43 christos Exp $");
#include <complex.h>
#include <math.h>
@@ -50,7 +50,7 @@
{
long_double_complex w = { .z = z };
- if (isinf(creall(z) || isinf(cimagl(z)))) {
+ if (isinf(creall(z)) || isinf(cimagl(z))) {
#ifdef __INFINITY
REAL_PART(w) = __INFINITY;
#else
Home |
Main Index |
Thread Index |
Old Index