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.

How to use inline function of c67xmathlib??

Other Parts Discussed in Thread: MATHLIB

hello everybody.

I use c67xmathlib_2_01_00_00 for C6748.

I am from the fastmath library provides test procedure found in an inline function calculates the clock soon.so the plan in my program using inline functions to improve the computation efficiency.

I am in the header file c67fastmath_i.h and C67xfastmath.lib, compile error:variable "V" has already been initialized.In order to resolve this error, I will inline functions proposed to generate a new inline.h.I am in the header file inline.h and C67xfastmath.lib,CompileOK.

I tested these inline functions, but found the ratio of c67fastmath.h function provided by the operating speed of consuming a lot more.

For example:

c67xmathlib_2_01_00_00\src\dp\sqrtdp.Test results are as follows:

RTS    ASM      C         Inlined   vector

1277   369     388       131       127.

The sprt_i in the inline.h header files, into my program.

double aa = 232.33563;

double b1,b2,b3;

b1 = sqrt(aa);    700clock

b2 = sqrtdp(aa); 360clock

b3 = sqrtdp_i(aa); 1900clock

I analyze out the reasons for this phenomenon.hellp me.

Thanks.



  • Have you looked at the steps used in the test case of sqrtdp in the library ? Can you set break points in sqrtdp_i.h file and check if indeed the inline files are being called? If you made changes to the inline file can you mention what you changed? I don`t see a 'V' variable defined in the inlined header file, were you able to locate where the alternate V variable definition/initialization came from?

    Just a note before you integrate this library, there is a update to this library on C6748 available on ti.com under the name MATHLIB. You can download that from here.

    http://www.ti.com/tool/mathlib

    This update fixed bugs reported on the version that you are using.

    Regards,

    Rahul