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.

program efficiency..

hi

 i am using CCS V 3.3 and 6474 processor. In my program i have to find the sure root of   number . I am using the sqrt( )  function of C language it take nearly 3300 cycle , if i use POW( , ) function it take 7900 cycle. So to find squre root of a number take so much clock cycle and in my program i have to find squre root of many number . So can you suggest ny function  or any way to find efficient squre root.

  • Hi Brajesh,

    You can search for "C64x+ IQMath" on www.ti.com. It will lead you to the TMS320C64x+ IQmath Library which is collection of highly optimized and high precision mathematical Function Library for C/C++ programmers to seamlessly port the floating-point algorithm into fixed point code on TMS320C64x+ devices.

    You can download this library and read the user's guide. There is the function to calculate the squire root, which is supposed to cost less cycles than the standard C library. 

    Please give a try to see if it can meet your requirement. Thanks.

     

    Sincerely,

    Steven Ji