summaryrefslogtreecommitdiffstats
path: root/test/aligned_alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Use Get/SetLastError on Win32Mike Hommey2012-04-301-11/+14
| | | | | | | | | Using errno on win32 doesn't quite work, because the value set in a shared library can't be read from e.g. an executable calling the function setting errno. At the same time, since buferror always uses errno/GetLastError, don't pass it.
* Remove #includes in testsMike Hommey2012-04-221-7/+0
| | | | | | | Since we're now including jemalloc_internal.h, all the required headers are already pulled. This will avoid having to fiddle with headers that can or can't be used with MSVC. Also, now that we use malloc_printf, we can use util.h's definition of assert instead of assert.h's.
* Replace fprintf with malloc_printf in tests.Mike Hommey2012-04-171-9/+9
|
* Implement aligned_alloc().Jason Evans2012-03-131-0/+123
Implement aligned_alloc(), which was added in the C11 standard. The function is weakly specified to the point that a minimally compliant implementation would be painful to use (size must be an integral multiple of alignment!), which in practice makes posix_memalign() a safer choice.