2
0

Add missing macro MAKE_COMPONENT_CONSTRUCTOR_TWO_COMPONENT to hip_complex.h

Este cometimento está contido em:
Yaxun (Sam) Liu
2018-06-05 08:46:20 -04:00
ascendente bae22822f2
cometimento 5eeb57b0a6
+3
Ver ficheiro
@@ -94,6 +94,9 @@ THE SOFTWARE.
ret.y = lhs.y * rhs; \
return ret; \
}
#define MAKE_COMPONENT_CONSTRUCTOR_TWO_COMPONENT(ComplexT, T) \
ComplexT(T val) : x(val), y(val) {} \
ComplexT(T val1, T val2) : x(val1), y(val2) {}
#endif