summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/opj_malloc.c
AgeCommit message (Collapse)Author
2017-06-21IDWT 5x3: generalize SSE2 version for AVX2Even Rouault
Thanks to our macros that abstract SSE use, the functions can use AVX2 when available (at compile time) This brings an extra 23% speed improvement on bench_dwt in 64bit builds with AVX2 compared to SSE2.
2017-05-09Reformat whole codebase with astyle.options (#128)Even Rouault
2016-05-10Update implementation of opj_calloc (#705)Stefan Weil
2016-01-06Fix fatal crash on 64 bit LinuxStefan Weil
By default, OpenJPEG uses the function memalign to allocate aligned memory on Linux systems. That function needs malloc.h which was missing. This results in a compiler warning: openjpeg/src/lib/openjp2/opj_malloc.c:63:3: warning: implicit declaration of function ‘memalign’ [-Wimplicit-function-declaration] On hosts where sizeof(int) < sizeof(void *) the return value of memalign will be truncated which results in an invalid pointer. That caused "make test" to produce lots of segmentation faults when running on a 64 bit Linux host. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-01-06Fix whitespace issues in opj_malloc.cStefan Weil
Some lines ended with spaces. Remove them. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-12-31Fix grammar in commentStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-11-01Fin compiler warningsmayeut
2015-10-21Avoid pointer arithmetic with (void *) pointers.Stephan Mühlstrasser
2015-10-21Generic aligned malloc implementation update.mayeut
Update #642
2015-10-20Generic aligned malloc implementation.Stephan Mühlstrasser
Used for platforms where none of posix_memalign(), memalign() and _aligned_malloc() is available.
2015-10-18Cleanup includesmayeut
2015-10-18Fix _aligned_malloc usagemayeut
2015-10-17Fix inconsistent behavior of malloc(0)mayeut
Update #635 Update #625
2015-10-17Add missing checks. Fix crash on failed allocation.mayeut
2015-10-17Fixed crash on encodingmayeut
Update #624 Update #625
2015-10-12minor tweaks to the codeMathieu Malaterre
2015-10-10Fix an issue with parenthesisMathieu Malaterre
2015-10-10implement a portable aligned reallocMathieu Malaterre
2015-10-10do not use aligned_alloc since it requires c11Mathieu Malaterre
2015-10-09cleanup header file and move to implementationMathieu Malaterre