Bug 1301864 - Remove constexpr from mozilla::IsNaN. r=jwalden
authorTooru Fujisawa <arai_a@mac.com>
Sat, 29 Oct 2016 01:47:30 +0900
changeset 320026 83ab2e59b7b537e420ba8aab75544a287686476a
parent 320025 8f89f06bdb13ae1574dac84a8b56e5d9db4ba6c9
child 320027 c8357a5b2431329993612ecd1095bff70f1d1911
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1301864
milestone52.0a1
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;