mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
e0a575ffab
commit
cebeb718fe
|
|
@ -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>
|
2016-01-15 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
* include/bits/std_mutex.h: Fix Doxygen @file name.
|
* include/bits/std_mutex.h: Fix Doxygen @file name.
|
||||||
|
|
|
||||||
|
|
@ -1570,7 +1570,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
return __t; });
|
return __t; });
|
||||||
__norm = std::sqrt(__sum);
|
__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(),
|
std::transform(__ret.begin(), __ret.end(), __ret.begin(),
|
||||||
[__norm](_RealType __val){ return __val / __norm; });
|
[__norm](_RealType __val){ return __val / __norm; });
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue