[PATCH] D41844: [libcxx] implement <experimental/simd> mask reductions

Zhihao Yuan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 16:30:11 PST 2018


lichray added inline comments.


================
Comment at: libcxx/include/experimental/simd:1561
 
+template <class _Tp, class _Abi, class _BinaryOp = std::plus<_Tp>>
+_Tp reduce(const simd<_Tp, _Abi>& __v, _BinaryOp __op = _BinaryOp()) {
----------------
Specified in terms of the transparent `plus<>`.


https://reviews.llvm.org/D41844





More information about the cfe-commits mailing list