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