awips2/nativeLib/rary.ohd.util/inc/netcdf_inc/fbits.h
root 06a8b51d6d Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

26 lines
643 B
C

/*
* Copyright 1995, University Corporation for Atmospheric Research
* See top level COPYRIGHT file for copying and redistribution conditions.
*/
/* $Id: fbits.h,v 1.2 1995/05/26 20:46:46 davis Exp $ */
#ifndef _FBITS_H_
#define _FBITS_H_
/*
* Macros for dealing with flag bits.
*/
#define fSet(t, f) ((t) |= (f))
#define fClr(t, f) ((t) &= ~(f))
#define fIsSet(t, f) ((t) & (f))
#define fMask(t, f) ((t) & ~(f))
/*
* Propositions
*/
/* a implies b */
#define pIf(a,b) (!(a) || (b))
/* a if and only if b, use == when it makes sense */
#define pIff(a,b) (((a) && (b)) || (!(a) && !(b)))
#endif /*!FBITS_H_*/