|
|
147e83 |
From 1aa79fbb9921281a8aedfe3eea1f273406b5f24c Mon Sep 17 00:00:00 2001
|
|
|
147e83 |
From: Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
|
|
|
147e83 |
Date: Wed, 30 Jul 2014 11:23:08 -0500
|
|
|
147e83 |
Subject: [PATCH] Fix cproj handling of (finite, NaN) arguments (bug 15531).
|
|
|
147e83 |
|
|
|
147e83 |
commit c980f2f4fe0f5d301f706017a1f7e4e942193ec0
|
|
|
147e83 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
147e83 |
Date: Tue Aug 20 19:41:15 2013 +0000
|
|
|
147e83 |
|
|
|
147e83 |
Fix cproj handling of (finite, NaN) arguments (bug 15531).
|
|
|
147e83 |
|
|
|
147e83 |
* math/s_cprojf.c (__cprojf): Only return an infinity if one part of
|
|
|
147e83 |
argument is infinite.
|
|
|
147e83 |
|
|
|
147e83 |
This patch is added so as to compile isnan multiarch implementation
|
|
|
147e83 |
successfully since __GI___isnanf is missing.This wll be fixed later in master.
|
|
|
147e83 |
---
|
|
|
147e83 |
math/s_cprojf.c | 6 ++----
|
|
|
147e83 |
1 file changed, 2 insertions(+), 4 deletions(-)
|
|
|
147e83 |
|
|
|
147e83 |
diff --git glibc-2.17-c758a686/math/s_cprojf.c glibc-2.17-c758a686/math/s_cprojf.c
|
|
|
147e83 |
index 6cbc93b..a0f0af9 100644
|
|
|
147e83 |
--- glibc-2.17-c758a686/math/s_cprojf.c
|
|
|
147e83 |
+++ glibc-2.17-c758a686/math/s_cprojf.c
|
|
|
147e83 |
@@ -1,5 +1,5 @@
|
|
|
147e83 |
/* Compute projection of complex float value to Riemann sphere.
|
|
|
147e83 |
- Copyright (C) 1997, 1999, 2010 Free Software Foundation, Inc.
|
|
|
147e83 |
+ Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
|
|
147e83 |
This file is part of the GNU C Library.
|
|
|
147e83 |
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
|
|
147e83 |
|
|
|
147e83 |
@@ -24,9 +24,7 @@
|
|
|
147e83 |
__complex__ float
|
|
|
147e83 |
__cprojf (__complex__ float x)
|
|
|
147e83 |
{
|
|
|
147e83 |
- if (isnan (__real__ x) && isnan (__imag__ x))
|
|
|
147e83 |
- return x;
|
|
|
147e83 |
- else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
|
|
|
147e83 |
+ if (__isinf_nsf (__real__ x) || __isinf_nsf (__imag__ x))
|
|
|
147e83 |
{
|
|
|
147e83 |
__complex__ float res;
|
|
|
147e83 |
|
|
|
147e83 |
--
|
|
|
147e83 |
1.8.3.1
|
|
|
147e83 |
|