1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2008-2008 - INRIA - Bruno JOFRET
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
*/
/* THIS IS AN AUTOMATICALLY GENERATED FILE : DO NOT EDIT BY HAND. */
#ifndef __INT_OPSTAR_H__
#define __INT_OPSTAR_H__
/* Scalar * Scalar */
#define s0s0OpStars0(in1,in2) smuls(in1,in2)
#define d0d0OpStard0(in1,in2) dmuls(in1,in2)
#define c0c0OpStarc0(in1,in2) cmuls(in1,in2)
#define z0z0OpStarz0(in1,in2) zmuls(in1,in2)
#define s0c0OpStarc0(in1,in2) cmuls(FloatComplex(in1,0),in2)
#define c0s0OpStarc0(in1,in2) cmuls(in1,FloatComplex(in2,0))
#define d0z0OpStarz0(in1,in2) zmuls(DoubleComplex(in1,0),in2)
#define z0d0OpStarz0(in1,in2) zmuls(in1,DoubleComplex(in2,0))
#define u80u80OpStaru80(in1,in2) u8muls(in1, in2)
#define u80u80OpStaru160(in1,in2) (uint16)(in1 * in2)
#define u80i80OpStari80(in1,in2) (int8)(in1 * in2)
#define u80i80OpStari160(in1,in2) (int16)(in1 * in2)
#define u80u160OpStaru160(in1,in2) (uint16)(in1 * in2)
#define u80i160OpStari160(in1,in2) (int16)(in1 * in2)
#define i80u80OpStari80(in1,in2) (int8)(in1 * in2)
#define i80u80OpStari160(in1,in2) (int16)(in1 * in2)
#define i80i80OpStari80(in1,in2) (int8)(in1 , in2)
#define i80i80OpStari160(in1,in2) (int16)(in1 * in2)
#define i80u160OpStari160(in1,in2) (int16)(in1 * in2)
#define i80i160OpStari160(in1,in2) (int16)(in1 * in2)
#define u160u80OpStaru160(in1,in2) (uint16)(in1 * in2)
#define u160i80OpStari160(in1,in2) (int16)(in1 * in2)
#define u160u160OpStaru160(in1,in2) u16muls(in1 , in2)
#define u160i160OpStari160(in1,in2) (int16)(in1 * in2)
#define i160u80OpStari160(in1,in2) (int16)(in1 * in2)
#define i160i80OpStari160(in1,in2) (int16)(in1 * in2)
#define i160u160OpStari160(in1,in2) (int16)(in1 * in2)
#define i160i160OpStari160(in1,in2) i16muls(in1 , in2)
/* Scalar * Matrix */
#define s0s2OpStars2(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1*in2[i];}
#define d0d2OpStard2(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1*in2[i];}
#define c0c2OpStarc2(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=cmuls(in1,in2[i]);}
#define z0z2OpStarz2(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=zmuls(in1,in2[i]);}
#define s0c2OpStarc2(in1,in2,size,out) c0c2OpStarc2(FloatComplex(in1,0),in2,size,out)
#define d0z2OpStarz2(in1,in2,size,out) z0z2OpStarz2(DoubleComplex(in1,0),in2,size,out)
#define c0s2OpStarc2(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=cmuls(in1,FloatComplex(in2[i],0));}
#define z0d2OpStarz2(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=zmuls(in1,DoubleComplex(in2[i],0));}
#define u80u82OpStaru82(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1*(uint8)in2[i];}
#define i80i82OpStari82(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1*in2[i];}
#define u160u162OpStaru162(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1*in2[i];}
#define i160i162OpStari162(in1,in2,size,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1*in2[i];}
/* Matrix * Scalar */
#define s2s0OpStars2(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1[i]*in2;}
#define d2d0OpStard2(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1[i]*in2;}
#define c2c0OpStarc2(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=cmuls(in1[i],in2);}
#define z2z0OpStarz2(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=zmuls(in1[i],in2);}
#define s2c0OpStarc2(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=cmuls(FloatComplex(in1[i],0),in2);}
#define d2z0OpStarz2(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=zmuls(DoubleComplex(in1[i],0),in2);}
#define c2s0OpStarc2(in1,size,in2,out) c2c0OpStarc2(in1,size,FloatComplex(in2,0),out)
#define z2d0OpStarz2(in1,size,in2,out) z2z0OpStarz2(in1,size,DoubleComplex(in2,0),out)
#define u82u80OpStaru82(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1[i]*in2;}
#define i82i80OpStari82(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1[i]*in2;}
#define u162u160OpStaru162(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1[i]*in2;}
#define i162i160OpStari162(in1,size,in2,out) {int i=0;\
for (i=0;i<size[0]*size[1];i++) out[i]=in1[i]*in2;}
/* Matrix * Matrix */
#define s2s2OpStars2(in1,size1,in2,size2,out) smulma(in1,size1[0],size1[1],in2,size2[0],size2[1],out)
#define d2d2OpStard2(in1,size1,in2,size2,out) dmulma(in1,size1[0],size1[1],in2,size2[0],size2[1],out)
#define c2c2OpStarc2(in1,size1,in2,size2,out) cmulma(in1,size1[0],size1[1],in2,size2[0],size2[1],out)
#define z2z2OpStarz2(in1,size1,in2,size2,out) zmulma(in1,size1[0],size1[1],in2,size2[0],size2[1],out)
/* FIXME: There is some malloc in the define below, maybe they can be remove */
#define c2s2OpStarc2(in1,size1,in2,size2,out) {float* temp;\
temp=malloc((uint)(size2[0]*size2[1])*sizeof(float));\
sfilla(temp,size2[0],size2[1],0);\
c2c2OpStarc2(in1, size1, FloatComplexMatrix(in2,temp,size2[0]*size2[1]), size2, out);}
#define s2c2OpStarc2(in1,size1,in2,size2,out) {float* temp;\
temp=malloc((uint)(size1[0]*size1[1])*sizeof(float));\
sfilla(temp,size1[0],size1[1],0);\
c2c2OpStarc2(FloatComplexMatrix(in1,temp,size1[0]*size1[1]), size1, in2, size2, out);}
#define z2d2OpStarz2(in1,size1,in2,size2,out) {double* temp;\
temp=malloc((uint)(size2[0]*size2[1])*sizeof(double));\
dfilla(temp,size2[0],size2[1],0);\
z2z2OpStarz2(in1, size1, DoubleComplexMatrix(in2,temp,size2[0]*size2[1]), size2, out);}
#define d2z2OpStarz2(in1,size1,in2,size2,out) {double* temp;\
temp=malloc((uint)(size2[0]*size2[1])*sizeof(double));\
dfilla(temp,size1[0],size1[1],0);\
z2z2OpStarz2(DoubleComplexMatrix(in1,temp,size1[0]*size1[1]), size1, in2, size2, out);}
/* Vector * Vector, so there is a scalar output */
#define MAX(a, b) (a > b ? a : b)
#define s2s2OpStars0(in1, size1, in2, size2) smulv( in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define c2s2OpStarc0(in1, size1, in2, size2) cmulcsv(in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define s2c2OpStarc0(in1, size1, in2, size2) cmulscv(in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define c2c2OpStarc0(in1, size1, in2, size2) cmulv( in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define d2d2OpStard0(in1, size1, in2, size2) dmulv( in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define z2d2OpStarz0(in1, size1, in2, size2) zmulzdv(in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define d2z2OpStarz0(in1, size1, in2, size2) zmuldzv(in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define z2z2OpStarz0(in1, size1, in2, size2) zmulv( in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define u82u82OpStaru80(in1, size1, in2, size2) u8mulv( in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define i82i82OpStari80(in1, size1, in2, size2) i8mulv( in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define u162u162OpStaru160(in1, size1, in2, size2) u16mulv( in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#define i162i162OpStari160(in1, size1, in2, size2) i16mulv( in1, in2, MAX(MAX(size1[0], size1[1]), MAX(size2[0], size2[1])))
#endif /* !__INT_OPSTAR_H__ */
|