aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Ellcey <sellcey@imgtec.com>2016-01-15 22:26:02 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2016-01-15 22:26:02 +0000
commitcebeb718fed641f5c6b093e487c5e93c9b41ce02 (patch)
tree01494f0f0e016828bcebd8b56f4e70878d3cac41
parente0a575ffab61ef4702c3384a1379a32526f63cd3 (diff)
downloadgcc-cebeb718fed641f5c6b093e487c5e93c9b41ce02.zip
gcc-cebeb718fed641f5c6b093e487c5e93c9b41ce02.tar.gz
gcc-cebeb718fed641f5c6b093e487c5e93c9b41ce02.tar.bz2
random.tcc: Use __builtin_isfinite instead of std::isfinite.
2016-01-15 Steve Ellcey <sellcey@imgtec.com> * include/ext/random.tcc: Use __builtin_isfinite instead of std::isfinite. From-SVN: r232452
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/ext/random.tcc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 392ab2c..0d8c24c 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-15 Steve Ellcey <sellcey@imgtec.com>
+
+ * include/ext/random.tcc: Use __builtin_isfinite instead of
+ std::isfinite.
+
2016-01-15 Jonathan Wakely <jwakely@redhat.com>
* include/bits/std_mutex.h: Fix Doxygen @file name.
diff --git a/libstdc++-v3/include/ext/random.tcc b/libstdc++-v3/include/ext/random.tcc
index a9c5a2b..52350e8 100644
--- a/libstdc++-v3/include/ext/random.tcc
+++ b/libstdc++-v3/include/ext/random.tcc
@@ -1570,7 +1570,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return __t; });
__norm = std::sqrt(__sum);
}
- while (__norm == _RealType(0) || ! std::isfinite(__norm));
+ while (__norm == _RealType(0) || ! __builtin_isfinite(__norm));
std::transform(__ret.begin(), __ret.end(), __ret.begin(),
[__norm](_RealType __val){ return __val / __norm; });