updated top-level README and version_decl for V4.5 (#1847)
[WRF.git] / var / external / wavelet / awaprogs / chap02 / common.h
blob8042a3373ad824b2634f0edc2ca2d472d5e81158
1 /*
2 * These are common definitions and macros.
4 * Copyright (C) 1991--94 Wickerhauser Consulting. All Rights Reserved.
5 * May be freely copied for noncommercial use. See
6 * ``Adapted Wavelet Analysis from Theory to Software'' ISBN 1-56881-041-5
7 * by Mladen Victor Wickerhauser [AK Peters, Ltd., Wellesley, Mass., 1994]
8 */
10 #ifndef COMMON_HDR_ALREADY_INCLUDED
11 # define COMMON_HDR_ALREADY_INCLUDED
13 #ifndef TRUE
14 # define TRUE 1
15 #endif
17 #ifndef FALSE
18 # define FALSE 0
19 #endif
21 #define max(x,y) ((x)>(y)?(x):(y))
22 #define min(x,y) ((x)<(y)?(x):(y))
23 #define absval(x) ((x)<0?-(x):(x))
25 /* Useful constants: */
26 #define PI (3.141592653589793)
27 #define SR2 (1.414213562373095) /* sqrt(2.0) */
28 #define SRH (0.707106781186547) /* sqrt(0.5) */
30 #endif /* COMMON_HDR_ALREADY_INCLUDED */