ncdf4a13/libsrc/rnd.h

Go to the documentation of this file.
00001 /*
00002  *      Copyright 1996, University Corporation for Atmospheric Research
00003  *      See netcdf/COPYRIGHT file for copying and redistribution conditions.
00004  */
00005 /* $Id: rnd.h,v 2.13 1996/12/11 05:46:54 davis Exp $ */
00006 #ifndef _RNDUP
00007 
00008 /* useful for aligning memory */
00009 #define _RNDUP(x, unit)  ((((x) + (unit) - 1) / (unit)) \
00010         * (unit))
00011 #define _RNDDOWN(x, unit)  ((x) - ((x)%(unit)))
00012 
00013 #define M_RND_UNIT      (sizeof(double))
00014 #define M_RNDUP(x) _RNDUP(x, M_RND_UNIT)
00015 #define M_RNDDOWN(x)  __RNDDOWN(x, M_RND_UNIT)
00016 
00017 #endif

Generated on Thu Mar 16 18:10:10 2006 for nco by  doxygen 1.4.4