"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libvips/include/vips/util.h" 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).

util.h  (vips-8.10.6):util.h  (vips-8.11.0)
skipping to change at line 95 skipping to change at line 95
#endif #endif
/* Testing status before the function call saves a lot of time. /* Testing status before the function call saves a lot of time.
*/ */
#define VIPS_ONCE( ONCE, FUNC, CLIENT ) \ #define VIPS_ONCE( ONCE, FUNC, CLIENT ) \
G_STMT_START { \ G_STMT_START { \
if( G_UNLIKELY( (ONCE)->status != G_ONCE_STATUS_READY ) ) \ if( G_UNLIKELY( (ONCE)->status != G_ONCE_STATUS_READY ) ) \
(void) g_once( ONCE, FUNC, CLIENT ); \ (void) g_once( ONCE, FUNC, CLIENT ); \
} G_STMT_END } G_STMT_END
/* VIPS_RINT() does "bankers rounding", it rounds to the nerarest even integer. /* VIPS_RINT() does "bankers rounding", it rounds to the nearest even integer.
* For things like image geometry, we want strict nearest int. * For things like image geometry, we want strict nearest int.
* *
* If you know it's unsigned, _UINT is a little faster. * If you know it's unsigned, _UINT is a little faster.
*/ */
#define VIPS_ROUND_INT( R ) ((int) ((R) > 0 ? ((R) + 0.5) : ((R) - 0.5))) #define VIPS_ROUND_INT( R ) ((int) ((R) > 0 ? ((R) + 0.5) : ((R) - 0.5)))
#define VIPS_ROUND_UINT( R ) ((int) ((R) + 0.5)) #define VIPS_ROUND_UINT( R ) ((int) ((R) + 0.5))
/* Round N down and up to the nearest multiple of P. /* Round N down and up to the nearest multiple of P.
*/ */
#define VIPS_ROUND_DOWN( N, P ) ((N) - ((N) % (P))) #define VIPS_ROUND_DOWN( N, P ) ((N) - ((N) % (P)))
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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