Lines Matching refs:a
215 u16 * a, in prvFindFactors() argument
225 *a = a0 = ( ( n - 1 ) / 65536ul ) + 1; in prvFindFactors()
226 *b = b0 = n / *a; in prvFindFactors()
228 for( ; *a <= 256; ( *a )++ ) in prvFindFactors()
230 *b = n / *a; in prvFindFactors()
231 err = ( int32_t ) *a * ( int32_t ) *b - ( int32_t ) n; in prvFindFactors()
233 if( abs( err ) > ( *a / 2 ) ) in prvFindFactors()
236 err = ( int32_t ) *a * ( int32_t ) *b - ( int32_t ) n; in prvFindFactors()
242 a0 = *a; in prvFindFactors()
252 *a = a0; in prvFindFactors()
260 uint16_t a; in prvSetupTimerInterrupt() local
269 prvFindFactors( n, &a, &b ); in prvSetupTimerInterrupt()
270 xWdg.WDG_Prescaler = a - 1; in prvSetupTimerInterrupt()
305 u8 * a, in prvFindFactors() argument
316 *a = a0 = ( ( n - 1 ) / 256 ) + 1; in prvFindFactors()
317 *b = b0 = n / *a; in prvFindFactors()
319 for( ; *a <= 256; ( *a )++ ) in prvFindFactors()
321 *b = n / *a; in prvFindFactors()
322 err = ( int32_t ) *a * ( int32_t ) *b - ( int32_t ) n; in prvFindFactors()
324 if( abs( err ) > ( *a / 2 ) ) in prvFindFactors()
327 err = ( int32_t ) *a * ( int32_t ) *b - ( int32_t ) n; in prvFindFactors()
333 a0 = *a; in prvFindFactors()
343 *a = a0; in prvFindFactors()
350 uint8_t a; in prvSetupTimerInterrupt() local
359 prvFindFactors( n, &a, &b ); in prvSetupTimerInterrupt()
365 timer.TIM_Prescaler = a - 1; in prvSetupTimerInterrupt()