]> git.rkrishnan.org Git - dttsp.git/blob - jDttSP/cxops.h
Initial revision
[dttsp.git] / jDttSP / cxops.h
1 /* cxops.h
2 This file is part of a program that implements a Software-Defined Radio.
3
4 Copyright (C) 2004 by Frank Brickle, AB2KT and Bob McGwier, N4HY
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
20 The authors can be reached by email at
21
22 ab2kt@arrl.net
23 or
24 rwmcgwier@comcast.net
25
26 or by paper mail at
27
28 The DTTS Microwave Society
29 6 Kathleen Place
30 Bridgewater, NJ 08807
31 */
32
33 #ifndef _cxops_h
34
35 #define _cxops_h
36
37 #include <datatypes.h>
38
39 extern COMPLEX cxzero;
40 extern COMPLEX cxone;
41 extern COMPLEX cxJ;
42 extern COMPLEX cxminusone;
43 extern COMPLEX cxminusJ;
44
45 extern INLINE COMPLEX Cscl(COMPLEX, REAL);
46 extern INLINE COMPLEX Cadd(COMPLEX, COMPLEX);
47 extern INLINE COMPLEX Csub(COMPLEX, COMPLEX);
48 extern INLINE COMPLEX Cmul(COMPLEX, COMPLEX);
49 extern INLINE COMPLEX Cdiv(COMPLEX, COMPLEX);
50 extern INLINE REAL Cmag(COMPLEX);
51 extern INLINE REAL Cabs(COMPLEX);
52 extern INLINE REAL Csqrmag(COMPLEX);
53 extern INLINE COMPLEX Cmplx(REAL, IMAG);
54 extern INLINE COMPLEX Conjg(COMPLEX);
55 extern INLINE COMPLEX Cexp(COMPLEX);
56
57 #endif
58