sipxmedialib  Version 3.3
Macros
MpDspUtilsSerials.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UINT32_HALF   UINT32_C(2147483648)
 Half of unsigned 32-bit integer range (2^31) More...
 
#define UINT16_HALF   UINT16_C(32768)
 Half of unsigned 16-bit integer range (2^15) More...
 
#define MP_COMPARE_SERIALS(val1, val2, range_half)
 

Detailed Description

DO NOT INCLUDE THIS FILE DIRECTLY! This files is designed to be included to <mp/MpDspUtils.h> and should not be used outside of it.

Macro Definition Documentation

#define UINT32_HALF   UINT32_C(2147483648)

Half of unsigned 32-bit integer range (2^31)

#define UINT16_HALF   UINT16_C(32768)

Half of unsigned 16-bit integer range (2^15)

#define MP_COMPARE_SERIALS (   val1,
  val2,
  range_half 
)
Value:
(((val1) == (val2)) ? 0 : \
((val1) >= (range_half)) ? ((((val1)-(range_half) < (val2)) && ((val2) < (val1))) ? 1 : -1) : \
((((val1)+(range_half) < (val2)) || ((val2) < (val1))) ? 1 : -1))