BiteTheDDDDt commented on code in PR #9939:
URL: https://github.com/apache/incubator-doris/pull/9939#discussion_r888885609
##########
be/src/vec/common/int_exp.h:
##########
@@ -22,6 +22,34 @@
#include <cstdint>
#include <limits>
+#include <utility>
+
+namespace exp_details {
+
+// compile-time exp(v, n) by linear recursion
+template <typename T, T v, std::size_t n>
+constexpr inline const T exp = v* exp<T, v, n - 1>;
Review Comment:
Seems here have a bug of clang-format, maybe we can use `T(v) * exp<T, v, n
- 1>` to work around.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]