Last change
on this file since 2337 was
409,
checked in by ymipsl, 12 years ago
|
Add improved nectdf internal library src
YM
|
-
Property svn:eol-style set to
native
|
File size:
506 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright 1996, University Corporation for Atmospheric Research |
---|
3 | * See netcdf/COPYRIGHT file for copying and redistribution conditions. |
---|
4 | */ |
---|
5 | /* $Id: rnd.h,v 2.13 1996/12/11 05:46:54 davis Exp $ */ |
---|
6 | #ifndef _RNDUP |
---|
7 | |
---|
8 | /* useful for aligning memory */ |
---|
9 | #define _RNDUP(x, unit) ((((x) + (unit) - 1) / (unit)) \ |
---|
10 | * (unit)) |
---|
11 | #define _RNDDOWN(x, unit) ((x) - ((x)%(unit))) |
---|
12 | |
---|
13 | #define M_RND_UNIT (sizeof(double)) |
---|
14 | #define M_RNDUP(x) _RNDUP(x, M_RND_UNIT) |
---|
15 | #define M_RNDDOWN(x) __RNDDOWN(x, M_RND_UNIT) |
---|
16 | |
---|
17 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.