This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c674x complex multiply intrinstic

Hi,

I tried this code on c674x, and it wasn't recognized by the compiler.  __float2 and __complex_mpysp were not recognized by the compiler.  This is almost directly taken out of the intrinsics samples projects.  What do I need to include? 

 __float2_t a, b, c;

__float2_t r, actual_r;

a = _ftof2(4.0F, 2.0F);

  b = _ftof2(3.0F, 1.0F);

c =  _complex_mpysp(a, b);

-Adam

  • Adam,

    Both the DSP intrinsics that you are trying are not supported on the C674x core. These intrinsics are only supported on the C66x core. Table 7-3  in the Optimizing compiler 7.3.x document (SPRU187T) provides information on intrinsics that are supported on the C674x core.  This document can be found in your compiler installation under the folder doc.

    It appears that you are trying to multiply 2 single precision complex numbers. You can achieve this functionality by using the C674x DSPLIB. Refer to the DSPF_sp_mat_mul_cplx for this purpose and specifying number of rows and columns for that function as 1. We also provide a DSPF_sp_dotp_cplx to compute dot product of two single precision complex numbers in that library.

    Please let us know if there are any other questions.

    Regards,

    Rahul