mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Turn double loop into single loop
In preparation for making the loop restartable
This commit is contained in:
		
							parent
							
								
									e2d7cb3f10
								
							
						
					
					
						commit
						ae55707b28
					
				@ -1359,11 +1359,14 @@ static int ecp_precompute_comb( const mbedtls_ecp_group *grp,
 | 
			
		||||
 | 
			
		||||
    MBEDTLS_MPI_CHK( mbedtls_ecp_copy( &T[0], P ) );
 | 
			
		||||
 | 
			
		||||
    for( i = 1; i < T_len; i <<= 1 )
 | 
			
		||||
    for( j = 0; j < d * ( w - 1 ); j++ )
 | 
			
		||||
    {
 | 
			
		||||
        i = 1U << ( j / d );
 | 
			
		||||
        cur = T + i;
 | 
			
		||||
 | 
			
		||||
        if( j % d == 0 )
 | 
			
		||||
            MBEDTLS_MPI_CHK( mbedtls_ecp_copy( cur, T + ( i >> 1 ) ) );
 | 
			
		||||
        for( j = 0; j < d; j++ )
 | 
			
		||||
 | 
			
		||||
        MBEDTLS_MPI_CHK( ecp_double_jac( grp, cur, cur ) );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user