diff options
author | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2017-08-23 10:16:54 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2017-08-24 16:06:42 -0300 |
commit | 3d7b66f66cb223e899a7ebc0f4c20f13e711c9e0 (patch) | |
tree | 15ec87ce030652ea6f3dc31ee7b5d056a1f1d1ae /math/math.h | |
parent | ebd6f0076a83bb25a9853773fbfbcff00b4c9a32 (diff) | |
download | glibc-3d7b66f66cb223e899a7ebc0f4c20f13e711c9e0.tar glibc-3d7b66f66cb223e899a7ebc0f4c20f13e711c9e0.tar.gz glibc-3d7b66f66cb223e899a7ebc0f4c20f13e711c9e0.tar.bz2 glibc-3d7b66f66cb223e899a7ebc0f4c20f13e711c9e0.zip |
Fix the C++ version of issignaling when __NO_LONG_DOUBLE_MATH is defined
When __NO_LONG_DOUBLE_MATH is defined, __issignalingl is not available,
thus issignaling with long double argument should call __issignaling,
instead.
Tested for powerpc64le.
* math/math.h [defined __cplusplus] (issignaling): In the long
double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
is not defined. Call __issignaling, otherwise.
Diffstat (limited to 'math/math.h')
-rw-r--r-- | math/math.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/math/math.h b/math/math.h index b5d6c43fcf..5acbe88906 100644 --- a/math/math.h +++ b/math/math.h @@ -486,7 +486,15 @@ enum extern "C++" { inline int issignaling (float __val) { return __issignalingf (__val); } inline int issignaling (double __val) { return __issignaling (__val); } -inline int issignaling (long double __val) { return __issignalingl (__val); } +inline int +issignaling (long double __val) +{ +# ifdef __NO_LONG_DOUBLE_MATH + return __issignaling (__val); +# else + return __issignalingl (__val); +# endif +} # if __HAVE_DISTINCT_FLOAT128 inline int issignaling (_Float128 __val) { return __issignalingf128 (__val); } # endif |