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.

Compiler/AWR1642: the function declaration of c6x.h

Part Number: AWR1642

Tool/software: TI C/C++ Compiler

Hi , many functions   are declared in the c6x.h,

such as 

double    _fabs    (double);
float     _fabsf   (float);
long long _mpyidll (int,      int);
int       _spint   (float);
int       _dpint   (double);

What does _spint mean? I can't find an explanation for these functions. Can you help me?

The location of c6x.h  on my computer   is:   C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c6000_8.3.4\lib\src.

Tanks

  • user6124565 said:
    double    _fabs    (double);
    float     _fabsf   (float);
    long long _mpyidll (int,      int);
    int       _spint   (float);
    int       _dpint   (double);

    Those are the names of intrinsics.  An intrinsic acts like a function call, but is not implemented by calling a function.  Instead, one instruction (sometimes a few instructions) is emitted.  The name of the intrinsic is usually similar to the instruction.  Please search the C6000 compiler manual for the sub-chapter titled Using Intrinsics to Access Assembly Language Statements.  The behavior of each intrinsic is documented.

    Thanks and regards,

    -George