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  

fbits.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 1995, University Corporation for Atmospheric Research
00003  *   See top level COPYRIGHT file for copying and redistribution conditions.
00004  */
00005 
00006 #ifndef _FBITS_H_
00007 #define _FBITS_H_
00008 
00009 /*
00010  * Macros for dealing with flag bits.
00011  */
00012 #define fSet(t, f)       ((t) |= (f))
00013 #define fClr(t, f)       ((t) &= ~(f))
00014 #define fIsSet(t, f)     ((t) & (f))
00015 #define fMask(t, f)     ((t) & ~(f))
00016 
00017 /*
00018  * Propositions
00019  */
00020 /* a implies b */
00021 #define pIf(a,b) (!(a) || (b))
00022 /* a if and only if b, use == when it makes sense */
00023 #define pIff(a,b) (((a) && (b)) || (!(a) && !(b)))
00024 
00025 #endif /*!FBITS_H_*/
 

Powered by Plone

This site conforms to the following standards: