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]
10 #ifndef COMMON_HDR_ALREADY_INCLUDED
11 # define COMMON_HDR_ALREADY_INCLUDED
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 */