Index: src/base/division-by-constant.cc |
diff --git a/src/base/division-by-constant.cc b/src/base/division-by-constant.cc |
index 3d8fc1a4a9ca473cfa8601a24baca4225ee7809f..5167b7a60c9f0ac9a9f1358c1e7a303e5aa2a737 100644 |
--- a/src/base/division-by-constant.cc |
+++ b/src/base/division-by-constant.cc |
@@ -11,6 +11,13 @@ |
namespace v8 { |
namespace base { |
+ |
+template <class T> |
+bool MagicNumbersForDivision<T>::operator==( |
+ const MagicNumbersForDivision& rhs) const { |
+ return multiplier == rhs.multiplier && shift == rhs.shift && add == rhs.add; |
+} |
+ |
template <class T> |
MagicNumbersForDivision<T> SignedDivisionByConstant(T d) { |
@@ -93,6 +100,9 @@ |
// ----------------------------------------------------------------------------- |
// Instantiations. |
+template struct MagicNumbersForDivision<uint32_t>; |
+template struct MagicNumbersForDivision<uint64_t>; |
+ |
template MagicNumbersForDivision<uint32_t> SignedDivisionByConstant(uint32_t d); |
template MagicNumbersForDivision<uint64_t> SignedDivisionByConstant(uint64_t d); |