summaryrefslogtreecommitdiff
path: root/boost/multiprecision/logged_adaptor.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:12:59 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:12:59 +0900
commitb8cf34c691623e4ec329053cbbf68522a855882d (patch)
tree34da08632a99677f6b79ecb65e5b655a5b69a67f /boost/multiprecision/logged_adaptor.hpp
parent3fdc3e5ee96dca5b11d1694975a65200787eab86 (diff)
downloadboost-b8cf34c691623e4ec329053cbbf68522a855882d.tar.gz
boost-b8cf34c691623e4ec329053cbbf68522a855882d.tar.bz2
boost-b8cf34c691623e4ec329053cbbf68522a855882d.zip
Imported Upstream version 1.67.0upstream/1.67.0
Diffstat (limited to 'boost/multiprecision/logged_adaptor.hpp')
-rw-r--r--boost/multiprecision/logged_adaptor.hpp108
1 files changed, 54 insertions, 54 deletions
diff --git a/boost/multiprecision/logged_adaptor.hpp b/boost/multiprecision/logged_adaptor.hpp
index 7cb33ee57a..df7ac93765 100644
--- a/boost/multiprecision/logged_adaptor.hpp
+++ b/boost/multiprecision/logged_adaptor.hpp
@@ -274,10 +274,10 @@ inline const Backend& unwrap_logged_type(const logged_adaptor<Backend>& a) { ret
log_postfix_event(result.value(), str);\
}\
-NON_MEMBER_OP2(add, "+=");
-NON_MEMBER_OP2(subtract, "-=");
-NON_MEMBER_OP2(multiply, "*=");
-NON_MEMBER_OP2(divide, "/=");
+NON_MEMBER_OP2(add, "+=")
+NON_MEMBER_OP2(subtract, "-=")
+NON_MEMBER_OP2(multiply, "*=")
+NON_MEMBER_OP2(divide, "/=")
template <class Backend, class R>
inline void eval_convert_to(R* result, const logged_adaptor<Backend>& val)
@@ -321,9 +321,9 @@ inline typename Backend::exponent_type eval_ilogb(const logged_adaptor<Backend>&
return r;
}
-NON_MEMBER_OP2(floor, "floor");
-NON_MEMBER_OP2(ceil, "ceil");
-NON_MEMBER_OP2(sqrt, "sqrt");
+NON_MEMBER_OP2(floor, "floor")
+NON_MEMBER_OP2(ceil, "ceil")
+NON_MEMBER_OP2(sqrt, "sqrt")
template <class Backend>
inline int eval_fpclassify(const logged_adaptor<Backend>& arg)
@@ -341,17 +341,17 @@ inline int eval_fpclassify(const logged_adaptor<Backend>& arg)
*
*********************************************************************/
-NON_MEMBER_OP3(add, "+");
-NON_MEMBER_OP3(subtract, "-");
-NON_MEMBER_OP3(multiply, "*");
-NON_MEMBER_OP3(divide, "/");
-NON_MEMBER_OP3(multiply_add, "fused-multiply-add");
-NON_MEMBER_OP3(multiply_subtract, "fused-multiply-subtract");
-NON_MEMBER_OP4(multiply_add, "fused-multiply-add");
-NON_MEMBER_OP4(multiply_subtract, "fused-multiply-subtract");
+NON_MEMBER_OP3(add, "+")
+NON_MEMBER_OP3(subtract, "-")
+NON_MEMBER_OP3(multiply, "*")
+NON_MEMBER_OP3(divide, "/")
+NON_MEMBER_OP3(multiply_add, "fused-multiply-add")
+NON_MEMBER_OP3(multiply_subtract, "fused-multiply-subtract")
+NON_MEMBER_OP4(multiply_add, "fused-multiply-add")
+NON_MEMBER_OP4(multiply_subtract, "fused-multiply-subtract")
-NON_MEMBER_OP1(increment, "increment");
-NON_MEMBER_OP1(decrement, "decrement");
+NON_MEMBER_OP1(increment, "increment")
+NON_MEMBER_OP1(decrement, "decrement")
/*********************************************************************
*
@@ -359,19 +359,19 @@ NON_MEMBER_OP1(decrement, "decrement");
*
*********************************************************************/
-NON_MEMBER_OP2(modulus, "%=");
-NON_MEMBER_OP3(modulus, "%");
-NON_MEMBER_OP2(bitwise_or, "|=");
-NON_MEMBER_OP3(bitwise_or, "|");
-NON_MEMBER_OP2(bitwise_and, "&=");
-NON_MEMBER_OP3(bitwise_and, "&");
-NON_MEMBER_OP2(bitwise_xor, "^=");
-NON_MEMBER_OP3(bitwise_xor, "^");
-NON_MEMBER_OP4(qr, "quotient-and-remainder");
-NON_MEMBER_OP2(complement, "~");
+NON_MEMBER_OP2(modulus, "%=")
+NON_MEMBER_OP3(modulus, "%")
+NON_MEMBER_OP2(bitwise_or, "|=")
+NON_MEMBER_OP3(bitwise_or, "|")
+NON_MEMBER_OP2(bitwise_and, "&=")
+NON_MEMBER_OP3(bitwise_and, "&")
+NON_MEMBER_OP2(bitwise_xor, "^=")
+NON_MEMBER_OP3(bitwise_xor, "^")
+NON_MEMBER_OP4(qr, "quotient-and-remainder")
+NON_MEMBER_OP2(complement, "~")
template <class Backend>
-inline void eval_left_shift(logged_adaptor<Backend>& arg, unsigned a)
+inline void eval_left_shift(logged_adaptor<Backend>& arg, std::size_t a)
{
using default_ops::eval_left_shift;
log_prefix_event(arg.value(), a, "<<=");
@@ -379,7 +379,7 @@ inline void eval_left_shift(logged_adaptor<Backend>& arg, unsigned a)
log_postfix_event(arg.value(), "<<=");
}
template <class Backend>
-inline void eval_left_shift(logged_adaptor<Backend>& arg, const logged_adaptor<Backend>& a, unsigned b)
+inline void eval_left_shift(logged_adaptor<Backend>& arg, const logged_adaptor<Backend>& a, std::size_t b)
{
using default_ops::eval_left_shift;
log_prefix_event(arg.value(), a, b, "<<");
@@ -387,7 +387,7 @@ inline void eval_left_shift(logged_adaptor<Backend>& arg, const logged_adaptor<B
log_postfix_event(arg.value(), "<<");
}
template <class Backend>
-inline void eval_right_shift(logged_adaptor<Backend>& arg, unsigned a)
+inline void eval_right_shift(logged_adaptor<Backend>& arg, std::size_t a)
{
using default_ops::eval_right_shift;
log_prefix_event(arg.value(), a, ">>=");
@@ -395,7 +395,7 @@ inline void eval_right_shift(logged_adaptor<Backend>& arg, unsigned a)
log_postfix_event(arg.value(), ">>=");
}
template <class Backend>
-inline void eval_right_shift(logged_adaptor<Backend>& arg, const logged_adaptor<Backend>& a, unsigned b)
+inline void eval_right_shift(logged_adaptor<Backend>& arg, const logged_adaptor<Backend>& a, std::size_t b)
{
using default_ops::eval_right_shift;
log_prefix_event(arg.value(), a, b, ">>");
@@ -468,9 +468,9 @@ inline void eval_bit_flip(const logged_adaptor<Backend>& arg, unsigned a)
log_postfix_event(arg.value(), arg, "bit-flip");
}
-NON_MEMBER_OP3(gcd, "gcd");
-NON_MEMBER_OP3(lcm, "lcm");
-NON_MEMBER_OP4(powm, "powm");
+NON_MEMBER_OP3(gcd, "gcd")
+NON_MEMBER_OP3(lcm, "lcm")
+NON_MEMBER_OP4(powm, "powm")
/*********************************************************************
*
@@ -478,8 +478,8 @@ NON_MEMBER_OP4(powm, "powm");
*
*********************************************************************/
-NON_MEMBER_OP2(abs, "abs");
-NON_MEMBER_OP2(fabs, "fabs");
+NON_MEMBER_OP2(abs, "abs")
+NON_MEMBER_OP2(fabs, "fabs")
/*********************************************************************
*
@@ -487,24 +487,24 @@ NON_MEMBER_OP2(fabs, "fabs");
*
*********************************************************************/
-NON_MEMBER_OP2(trunc, "trunc");
-NON_MEMBER_OP2(round, "round");
-NON_MEMBER_OP2(exp, "exp");
-NON_MEMBER_OP2(log, "log");
-NON_MEMBER_OP2(log10, "log10");
-NON_MEMBER_OP2(sin, "sin");
-NON_MEMBER_OP2(cos, "cos");
-NON_MEMBER_OP2(tan, "tan");
-NON_MEMBER_OP2(asin, "asin");
-NON_MEMBER_OP2(acos, "acos");
-NON_MEMBER_OP2(atan, "atan");
-NON_MEMBER_OP2(sinh, "sinh");
-NON_MEMBER_OP2(cosh, "cosh");
-NON_MEMBER_OP2(tanh, "tanh");
-NON_MEMBER_OP2(logb, "logb");
-NON_MEMBER_OP3(fmod, "fmod");
-NON_MEMBER_OP3(pow, "pow");
-NON_MEMBER_OP3(atan2, "atan2");
+NON_MEMBER_OP2(trunc, "trunc")
+NON_MEMBER_OP2(round, "round")
+NON_MEMBER_OP2(exp, "exp")
+NON_MEMBER_OP2(log, "log")
+NON_MEMBER_OP2(log10, "log10")
+NON_MEMBER_OP2(sin, "sin")
+NON_MEMBER_OP2(cos, "cos")
+NON_MEMBER_OP2(tan, "tan")
+NON_MEMBER_OP2(asin, "asin")
+NON_MEMBER_OP2(acos, "acos")
+NON_MEMBER_OP2(atan, "atan")
+NON_MEMBER_OP2(sinh, "sinh")
+NON_MEMBER_OP2(cosh, "cosh")
+NON_MEMBER_OP2(tanh, "tanh")
+NON_MEMBER_OP2(logb, "logb")
+NON_MEMBER_OP3(fmod, "fmod")
+NON_MEMBER_OP3(pow, "pow")
+NON_MEMBER_OP3(atan2, "atan2")
template <class Backend>
int eval_signbit(const logged_adaptor<Backend>& val)