"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libvips/conversion/composite.cpp" between
vips-8.10.6.tar.gz and vips-8.11.0.tar.gz

About: VIPS is a free image processing system (see also the GUI nip2).

composite.cpp  (vips-8.10.6):composite.cpp  (vips-8.11.0)
skipping to change at line 214 skipping to change at line 214
#ifdef HAVE_VECTOR_ARITH #ifdef HAVE_VECTOR_ARITH
/* Allocate aligned memory. The return value can be released /* Allocate aligned memory. The return value can be released
* by calling the vips_free_aligned() function, for example: * by calling the vips_free_aligned() function, for example:
* VIPS_FREEF( vips_free_aligned, ptr ); * VIPS_FREEF( vips_free_aligned, ptr );
*/ */
static inline void * static inline void *
vips_alloc_aligned( size_t sz, size_t align ) vips_alloc_aligned( size_t sz, size_t align )
{ {
g_assert( !(align & (align - 1)) ); g_assert( !(align & (align - 1)) );
#ifdef HAVE__ALIGNED_MALLOC #ifdef HAVE__ALIGNED_MALLOC
return _aligned_malloc( sz, align ); return _aligned_malloc( sz, align );
#elif defined(HAVE_POSIX_MEMALIGN) #elif defined(HAVE_POSIX_MEMALIGN)
void *ptr; void *ptr;
if( posix_memalign( &ptr, align, sz ) ) return NULL; if( posix_memalign( &ptr, align, sz ) ) return NULL;
return ptr; return ptr;
#elif defined(HAVE_MEMALIGN) #elif defined(HAVE_MEMALIGN)
return memalign( align, sz ); return memalign( align, sz );
#else #else
#error Missing aligned alloc implementation #error Missing aligned alloc implementation
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)