initial import
[ICEs.git] / bfin-1400 / fe_TestDsp.ii.bak
1 typedef long fract32;
2 typedef struct complex_fract16 {
3 fract32 re, im;
4 }
5 complex_long_double;
6 typedef int __v2hi __attribute__ ((__mode__ (__V2HI__)));
7 typedef __v2hi raw2x16;
8 typedef raw2x16 fract2x16;
9 static __inline complex_fract16 cmlt_fr16(complex_fract16 _a, complex_fract16 _b) {
10 fract2x16 i = __builtin_bfin_cmplx_mul(__builtin_bfin_compose_2x16(_a.im, _a.re), __builtin_bfin_compose_2x16(_b.im, _b.re));
11 }
12 int main(){
13 complex_fract16 c,d;
14 complex_fract16 answer;
15 answer = cmlt_fr16(c,d);
16 }