commit 509d0251987260ef1f7845592147120e1158b75b
parent fd75e6440a2659a4991d2690c5c7677494a505c5
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Fri, 16 Nov 2018 05:14:02 +0300
Fix process() alignment
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/kfr/base/expression.hpp b/include/kfr/base/expression.hpp
@@ -453,10 +453,10 @@ CMT_INLINE static size_t process(OutputExpr&& out, const InputExpr& in, size_t s
size_t i = start;
CMT_LOOP_NOUNROLL
- for (; i < end / w * w; i += w)
+ for (; i < start + size / w * w; i += w)
out(coutput, i, in(cinput, i, vec_t<Tin, w>()));
CMT_LOOP_NOUNROLL
- for (; i < end / groupsize * groupsize; i += groupsize)
+ for (; i < start + size / groupsize * groupsize; i += groupsize)
out(coutput, i, in(cinput, i, vec_t<Tin, groupsize>()));
in.end_block(cinput, size);