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