/**************************************************************************** * x264_reduce_fraction: ****************************************************************************/#define REDUCE_FRACTION( name, type )\void name( type *n, type *d )\{ \ type a = *n; \ type b = *d; \ type c; \ if( !a || !b ) \ return; \ c = a % b; \ while( c ) \ { \ a = b; \ b = c; \ c = a % b; \ } \ *n /= b; \ *d /= b; \}REDUCE_FRACTION(x264_reduce_fraction,uint32_t)REDUCE_FRACTION(x264_reduce_fraction64,uint64_t)