Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

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  *      Copyright 1996, University Corporation for Atmospheric Research
00003  *      See netcdf/COPYRIGHT file for copying and redistribution conditions.
00004  */
00005 #ifndef _RNDUP
00006 
00007 /* useful for aligning memory */
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
 

Powered by Plone

This site conforms to the following standards: