src/atsc3_decoupling_vlc_common.h
static inline bool uadd_overflow(unsigned a, unsigned b, unsigned *res)
{
#if VLC_GCC_VERSION(5,0) || defined(__clang__)
     return __builtin_uadd_overflow(a, b, res);
#else
     *res = a + b;
     return (a + b) < a;
#endif
}
/**
 * \defgroup overflow Overflowing arithmetic
 * @{
 */
\defgroup overflow Overflowing arithmetic
@{
\ defgroup overflow Overflowing arithmetic @ {
static inline bool uadd_overflow(unsigned a, unsigned b, unsigned *res)
{
#if VLC_GCC_VERSION(5,0) || defined(__clang__)
     return __builtin_uadd_overflow(a, b, res);
#else
     *res = a + b;
     return (a + b) < a;
#endif
}
static inline bool uadd_overflow ( unsigned a , unsigned b , unsigned * res ) { #if VLC_GCC_VERSION ( 5 , 0 ) || defined ( __clang__ ) return __builtin_uadd_overflow ( a , b , res ) ; #else * res = a + b ; return ( a + b ) < a ; #endif }
\defgroup overflow Overflowing arithmetic
 @{
\ defgroup overflow Overflowing arithmetic @ {