Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
rnd.h
Go to the documentation of this file.00001
00002
00003
00004
00005 #ifndef _RNDUP
00006
00007
00008 #define _RNDUP(x, unit) ((((x) + (unit) - 1) / (unit)) \
00009 * (unit))
00010 #define _RNDDOWN(x, unit) ((x) - ((x)%(unit)))
00011
00012 #define M_RND_UNIT (sizeof(double))
00013 #define M_RNDUP(x) _RNDUP(x, M_RND_UNIT)
00014 #define M_RNDDOWN(x) __RNDDOWN(x, M_RND_UNIT)
00015
00016 #endif