Bug 1301864 - Remove constexpr from mozilla::IsNaN. r=jwalden
authorTooru Fujisawa <arai_a@mac.com>
Sat, 29 Oct 2016 01:47:30 +0900
changeset 362814 83ab2e59b7b537e420ba8aab75544a287686476a
parent 362813 8f89f06bdb13ae1574dac84a8b56e5d9db4ba6c9
child 362815 c8357a5b2431329993612ecd1095bff70f1d1911
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-beta@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1301864
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1301864 - Remove constexpr from mozilla::IsNaN. r=jwalden
mfbt/FloatingPoint.h
--- a/mfbt/FloatingPoint.h
+++ b/mfbt/FloatingPoint.h
@@ -112,17 +112,17 @@ struct FloatingPoint : public SelectTrai
    * these algorithms that preceded this header, so we shouldn't break anything
    * if we keep doing so.
    */
   static_assert(sizeof(T) == sizeof(Bits), "Bits must be same size as T");
 };
 
 /** Determines whether a float/double is NaN. */
 template<typename T>
-static MOZ_ALWAYS_INLINE constexpr bool
+static MOZ_ALWAYS_INLINE bool
 IsNaN(T aValue)
 {
   /*
    * A float/double is NaN if all exponent bits are 1 and the significand
    * contains at least one non-zero bit.
    */
   typedef FloatingPoint<T> Traits;
   typedef typename Traits::Bits Bits;