IDWT 5x3: generalize SSE2 version for AVX2
[openjpeg.git] / src / lib / openjp2 / opj_malloc.h
index c8c2fc2dbb45403b17610e387973023bebaf027a..7503c28d2a4f18ab5ec588418edd5fef62ae7181 100644 (file)
@@ -71,6 +71,14 @@ void * opj_aligned_malloc(size_t size);
 void * opj_aligned_realloc(void *ptr, size_t size);
 void opj_aligned_free(void* ptr);
 
+/**
+Allocate memory aligned to a 32 byte boundary
+@param size Bytes to allocate
+@return Returns a void pointer to the allocated space, or NULL if there is insufficient memory available
+*/
+void * opj_aligned_32_malloc(size_t size);
+void * opj_aligned_32_realloc(void *ptr, size_t size);
+
 /**
 Reallocate memory blocks.
 @param m Pointer to previously allocated memory block