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.

C6748 fmaxf math function



Hi

I need to port a project to the OMAP L138 C6748 dsp. I will not be using any OS on the OMAP L138 part.

I have not been able to find the library, header files etc that support the math function fmaxf.

How do I call the equivalent math library from code composer to run on the C6748?

How do I obtain the library files etc?

Thanks in advance for your help.

Rex

  • fmax, fmaxf, and fmaxl are C99 functions and are not supported by the C6000 compiler.

  • Hi,

    Thanks for the swift reply.

    Can I ask, out of interest, what are C99 functions, which platform?

    Can I also assume that fmaxf etx are not supported by other libraries, and there are no equivalents? Is there a way of gaining this knowledge without resorting to the forum?

    Rex

  • C99 is the nickname for the 1999 version of the C standard, ISO 9899:1999.  Among many other changes to the standard, it adds many floating-point functions to the language.  In particular, all of the float and long double-specific functions are added by C99, and were not available in C89 (ISO 9899:1990).  Thus, we know right away that cosf and cosl are C99 functions.  In addition, C99 adds new functions such as fmax.  Refer to the C89 standard to see which functions you can count on existing in C89.

    All existing releases of the TI compiler officially support C89, not C99.  C99 language support is coming soon, library support a bit later.

    The C6000 compiler's library adds many of the C99 functions as extensions, such as cosf and cosl, but not fmax.  You can run nm6x on rts6200.lib to see exactly which symbols are defined in the library.

    The latest ARM and MSP430 libraries add nearly all of the C99 floating-point functions.

    The C2000 library does not have any C99 functions.