Mistři v programování na #hovnokod

C/C++ #1018

Ze zdrojových kódů OpenSSH

/*
 * Add comment here.  Explain following algorithm.
 *
 * Trust me, it works.
 *
 */
Dbl_setzero(resultp1,resultp2);
Dbl_allp1(newbitp1) = 1 << (DBL_P - 32);
Dbl_setzero_mantissap2(newbitp2);
while (Dbl_isnotzero(newbitp1,newbitp2) && Dbl_isnotzero(srcp1,srcp2)) {
	Dbl_addition(resultp1,resultp2,newbitp1,newbitp2,sump1,sump2);
	if(Dbl_isnotgreaterthan(sump1,sump2,srcp1,srcp2)) {
		Dbl_leftshiftby1(newbitp1,newbitp2);
		/* update result */
		Dbl_addition(resultp1,resultp2,newbitp1,newbitp2,
		 resultp1,resultp2);
		Dbl_subtract(srcp1,srcp2,sump1,sump2,srcp1,srcp2);
		Dbl_rightshiftby2(newbitp1,newbitp2);
	}
	else {
		Dbl_rightshiftby1(newbitp1,newbitp2);
	}
	Dbl_leftshiftby1(srcp1,srcp2);
}

Anonymous,