ROUND_INT

Rounds a 32-bit integer value into a 16-bit result. When an accumulator is the destination, zeroes out the LSP portion.

Prototype

  Word16 __round_int(Word32 lvar1)

  

  
Example
long s = 0x12347FFF;

int result;

result = round_int (s);

// Expected value of result: 0x1234