diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-05-20 15:36:03 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-05-20 15:36:03 -0500 |
commit | c5ff55274bef4ec6ecd0a714d2452504a0d62ff2 (patch) | |
tree | 3ea1358952b359af2d04cf0241a4e7d36a525090 /Carpet/CarpetLib | |
parent | f38e7da6e3481a33fa9b49f2674a84226f5a7aa3 (diff) |
CarpetLib: Remove now outdated definitions of idiv and imod
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r-- | Carpet/CarpetLib/src/vect.hh | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh index 95840b17c..a8b708cca 100644 --- a/Carpet/CarpetLib/src/vect.hh +++ b/Carpet/CarpetLib/src/vect.hh @@ -407,19 +407,8 @@ DECLARE_OPERATOR_1_RET (operator!, !, bool) DECLARE_FUNCTION_2 (max) DECLARE_FUNCTION_2 (min) DECLARE_FUNCTION_2 (pow) - -template<typename T> -T idiv(T const& x, T const& y) -{ - return x>=T(0) ? x/y : -(-x/y); -} -template<typename T> -T imod(T const& x, T const& y) -{ - return x>=T(0) ? x%y : -(-x%y); -} -DECLARE_FUNCTION_2 (idiv) // divide, rounding to minus infinity -DECLARE_FUNCTION_2 (imod) // modulo, rounding to minus infinity +DECLARE_FUNCTION_2 (idiv) +DECLARE_FUNCTION_2 (imod) DECLARE_OPERATOR_2 (operator+, +) DECLARE_OPERATOR_2 (operator-, -) |