source: XIOS/dev/dev_olga/extern/src_netcdf4/fbits.h @ 1620

Last change on this file since 1620 was 409, checked in by ymipsl, 11 years ago

Add improved nectdf internal library src

YM

  • Property svn:eol-style set to native
File size: 643 bytes
Line 
1/*
2 *   Copyright 1995, University Corporation for Atmospheric Research
3 *   See top level COPYRIGHT file for copying and redistribution conditions.
4 */
5/* $Id: fbits.h,v 1.2 1995/05/26 20:46:46 davis Exp $ */
6
7#ifndef _FBITS_H_
8#define _FBITS_H_
9
10/*
11 * Macros for dealing with flag bits.
12 */
13#define fSet(t, f)       ((t) |= (f))
14#define fClr(t, f)       ((t) &= ~(f))
15#define fIsSet(t, f)     ((t) & (f))
16#define fMask(t, f)     ((t) & ~(f))
17
18/*
19 * Propositions
20 */
21/* a implies b */
22#define pIf(a,b) (!(a) || (b))
23/* a if and only if b, use == when it makes sense */
24#define pIff(a,b) (((a) && (b)) || (!(a) && !(b)))
25
26#endif /*!FBITS_H_*/
Note: See TracBrowser for help on using the repository browser.