3 ms·
To my knowledge, most CPUs operate better on aligned data. That would apply here, since memcpy most likely uses ints internally. (It should, in any case.) If
by juliangoldsmith 10y ago
To my knowledge, most CPUs operate better on aligned data.
That would apply here, since memcpy most likely uses ints internally. (It should, in any case.) If the data starts out aligned, most reads will also be aligned.
You already take care of the alignment by using __attribute__((aligned(4))) on the declarations of your tiles, so it should all be good as-is.