Use AlignedBuffer helper class in rgbProc, use SSE in standard tone curve application.

This commit is contained in:
gatoatigrado
2017-12-25 00:41:43 -05:00
parent a2bf608155
commit 3ccfb9b203
3 changed files with 70 additions and 17 deletions

View File

@@ -21,6 +21,10 @@
#include <cstdlib>
#include <utility>
inline size_t padToAlignment(size_t size, size_t align = 16) {
return align * ((size + align - 1) / align);
}
// Aligned buffer that should be faster
template <class T> class AlignedBuffer
{