Commit 0c3b13c9 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Use aligned access to store data in composite op

This access is much faster and the highlevel code does all the
alignment work for us.

Since Vc 1.0 the default alignment option is *Unaligned*! So, basically,
all the accesses in 128-bit composite ops should be modified to use
aligned ones!
parent e6545fdf
......@@ -205,7 +205,7 @@ static inline void write_channels_32(quint8 *data,
uint_v v4 = uint_v(int_v(Vc::round(c3))) & mask;
v1 = v1 | v2;
v3 = v3 | v4;
*((uint_v*)data) = v1 | v3;
(v1 | v3).store((quint32*)data, Vc::Aligned);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment