FAQ: Standard Math Library for SHARC

Document created by Kader.M Employee on May 30, 2018
Version 1Show Document
  • View in full screen mode

Question:

 

Hi, I am starting a Sharc project in C (ADSP-21489) and am wondering if there is a standard library that is available which contains implementations of standard c math functions like cos, pow, sqrt, etc. Where can I find this?

 

 

======================

 

Answer:

 

The standard math functions defined in the math.h header file.This header file includes trigonometric, power, logarithmic, exponential, and other miscellaneous functions. The library contains the functions specified by the C standard along with implementations for the data types float and long double.

 

You can find the "math.h" header file in the below CCES installation path.
<installation path>:\Analog Devices\CrossCore Embedded Studio 2.6.0\SHARC\include

 

For a list of library functions that use this header, see the "Table 7. Library Functions in the math.h Header File" in the below CCES help path:
CrossCore® Embedded Studio 2.6.0 > SHARC® Development Tools Documentation > C/C++ Library Manual for SHARC® Processors > C/C++ Run-Time Library > Documented Library Functions

 

For more details please refer below CCES help path:
CrossCore® Embedded Studio 2.6.0 > SHARC® Development Tools Documentation > C/C++ Library Manual for SHARC® Processors > C/C++ Run-Time Library > C and C++ Run-Time Libraries Guide > Working With Library Header Files > math.h

Attachments

    Outcomes