
20 Dec
2012
20 Dec
'12
6:25 p.m.
Le 20/12/2012 19:12, Dave Abrahams a écrit :
on Thu Dec 20 2012, Joel Falcou <joel.falcou-AT-gmail.com> wrote:
Maybe we should have a simd::unaligned_input_iterator and/or make simd::transform accept non aligned data. Note that on any pre-Nehalem CPU, the unaligned load will be horrendsously slow.
It's probably a bit late to bring this up, but did you consider a design that uses something like Matt Austern's segmented iterator concept (http://lafstern.org/matt/segmented.pdf) and imposes a hierarchical view over regular memory that segments on aligned memory regions?
We did but we never had time to implement somethign like that. The best we had was a simd::transform that handled the epi/prolog But it's maybe the best stuff to have yes.