comparison filter/all.c @ 0:5242703e91d3 tip

Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author tomwalters
date Fri, 20 May 2011 15:19:45 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5242703e91d3
1 /*
2 Copyright (c) Applied Psychology Unit, Medical Research Council. 1988, 1989
3 ===========================================================================
4
5 Permission to use, copy, modify, and distribute this software without fee
6 is hereby granted for research purposes, provided that this copyright
7 notice appears in all copies and in all supporting documentation, and that
8 the software is not redistributed for any fee (except for a nominal shipping
9 charge). Anyone wanting to incorporate all or part of this software in a
10 commercial product must obtain a license from the Medical Research Council.
11
12 The MRC makes no representations about the suitability of this
13 software for any purpose. It is provided "as is" without express or implied
14 warranty.
15
16 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
17 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE
18 A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
19 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
20 AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
21 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 */
23
24 /*
25 ============================================
26 all.c - code for recursive filter section.
27 ============================================
28
29
30 J. Holdsworth - 23rd February 1988.
31
32
33 Copywright (c) Applied Psychology Unit, Medical Research Council. 1988.
34 =======================================================================
35
36
37
38
39
40 */
41
42 #ifdef DSP32
43 #include <math.h>
44 #else
45
46 /* identify object file */
47
48 #ifndef lint
49 static char *all_sccs_id = "@(#)all.c 1.7 John Holdsworth (MRC-APU) 10/7/89" ;
50 #endif
51
52 /* short data, integer recursive */
53
54 #include "generic.c"
55
56 /* short data, floating point recursive */
57
58 #define FLOAT float
59 #define FILTER_NAME SingleFilterShortDataArray
60 #define MODULE_NAME DoSingleFilterShortDataArray
61
62 #include "generic.c"
63
64 /* short data, floating point recursive */
65
66 #define FLOAT double
67 #define FILTER_NAME RealFilterShortDataArray
68 #define MODULE_NAME DoRealFilterShortDataArray
69
70 #include "generic.c"
71
72 /* short data, complex integer recursive */
73
74 #define COMPLEX
75 #define OUTPUT_TYPE scomplex
76 #define FILTER_NAME ComplexFilterShortDataArray
77 #define MODULE_NAME DoComplexFilterShortDataArray
78
79 #include "generic.c"
80
81 /* int data, integer recursive */
82
83 #define INPUT_TYPE int
84 #define FILTER_NAME FilterIntDataArray
85 #define MODULE_NAME DoFilterIntDataArray
86
87 #include "generic.c"
88
89
90 /* int data, floating point recursive */
91
92 #define FLOAT double
93 #define INPUT_TYPE int
94 #define FILTER_NAME RealFilterIntDataArray
95 #define MODULE_NAME DoRealFilterIntDataArray
96
97 #include "generic.c"
98
99
100 /* double data, real recursive */
101
102 #define FLOAT double
103 #define INPUT_TYPE double
104 #define FILTER_NAME RealFilterDoubleDataArray
105 #define MODULE_NAME DoRealFilterDoubleDataArray
106
107 #include "generic.c"
108
109
110 #define ENVELOPE
111
112 /* short data, integer recursive envelope */
113
114 #define FILTER_NAME EnvelopeShortDataArray
115 #define MODULE_NAME DoEnvelopeShortDataArray
116
117 #include "generic.c"
118
119
120 /* short data, floating Point recursive envelope */
121
122 #define FLOAT double
123 #define FILTER_NAME RealEnvelopeShortDataArray
124 #define MODULE_NAME DoRealEnvelopeShortDataArray
125
126 #include "generic.c"
127
128 #undef ENVELOPE
129
130 #endif
131
132
133 /* float data, real recursive */
134
135 #define FLOAT float
136 #define INPUT_TYPE float
137 #define FILTER_NAME RealFilterFloatDataArray
138 #define MODULE_NAME DoRealFilterFloatDataArray
139
140 #include "generic.c"
141
142
143 #define ENVELOPE
144
145 /* float data, floating Point recursive envelope */
146
147 #define FLOAT float
148 #define INPUT_TYPE float
149 #define FILTER_NAME RealEnvelopeFloatDataArray
150 #define MODULE_NAME DoRealEnvelopeFloatDataArray
151
152 #include "generic.c"
153
154 #undef ENVELOPE
155
156
157 /* float data, complex integer point recursive */
158
159 #define COMPLEX
160 #define FLOAT float
161 #define INPUT_TYPE float
162 #define OUTPUT_TYPE fcomplex
163 #define FILTER_NAME ComplexFilterFloatDataArray
164 #define MODULE_NAME DoComplexFilterFloatDataArray
165
166 #include "generic.c"
167
168 #undef COMPLEX