Il faut que tu nous montre ton algorithme


Voilà à peu près son code, c'est un dérivé d'un algo donné par segaman dans l'ancien topic :long long_sqrt(long v)
{
int i;
unsigned long result, tmp;
unsigned long low, high;
if (v <= 1) return((unsigned)v);
low= v;
high= 0;
result= 0;
for (i=0;i<16;i++)
{
result+= result;
high= (high << 2) | ((low >> 30) & 0x3);
low<<= 2;
tmp= result + result + 1;
if (high >= tmp)
{
result++;
high -= tmp;

