From 162ceab464a66006a52c0e6241a933f5104a58e7 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Sun, 17 Feb 2013 13:57:51 +0100 Subject: [PATCH] cacoshq.c (cacoshq): Call signbitq instead of signbit. 2013-02-17 Tobias Burnus * math/cacoshq.c (cacoshq): Call signbitq instead of signbit. From-SVN: r196109 --- libquadmath/ChangeLog | 4 ++++ libquadmath/math/cacoshq.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog index f8e7c71303d..3c293cfac5e 100644 --- a/libquadmath/ChangeLog +++ b/libquadmath/ChangeLog @@ -1,3 +1,7 @@ +2013-02-17 Tobias Burnus + + * math/cacoshq.c (cacoshq): Call signbitq instead of signbit. + 2013-02-06 Richard Sandiford Revert previous patch. diff --git a/libquadmath/math/cacoshq.c b/libquadmath/math/cacoshq.c index 263e03d0c11..a7025dc917d 100644 --- a/libquadmath/math/cacoshq.c +++ b/libquadmath/math/cacoshq.c @@ -70,7 +70,7 @@ cacoshq (__complex128 x) some cases. */ res = 2.0Q * clogq (csqrtq ((x + 1.0Q) / 2.0Q) + csqrtq ((x - 1.0Q) / 2.0Q)); - if (signbit (__real__ res)) + if (signbitq (__real__ res)) __real__ res = 0.0Q; } else