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/TMS570LS3137: Need definition for the "_hi(f)", "_lo(f)" used in the xxdftype.h file

Part Number: TMS570LS3137

Tool/software: TI C/C++ Compiler

The xxdftype.h and xxfloor.h files are included in the floor.c file. And, in the xxdftype.h the following macros are used:

#define FRAC_PART_HI(f) (_hi(f) & BIT_MASK(FBITS-1-32))
#define FRAC_PART_LO(f) (_lo(f))

Since _hi and _lo are defined as macros not able to find the definition for this in disassembly file. Can you please provide the definition for the "_hi(x)", "_lo(x)" macros that are used in the xxdftype.h file?

  • Venkataraman Gunasekaran said:
    please provide the definition for the "_hi(x)", "_lo(x)" macros

    They are not macros.  They are compiler intrinsics.  An intrinsic acts like a function call, but is (usually) implemented with a single instruction.  The _hi and _lo intrinsics are not documented.  So, here is the interface.

    unsigned long _hi(long double);
    unsigned long _lo(long double);

    Thanks and regards,

    -George