math.c

lpc4/lib/inherit/math.c · 172 B

From the archive lpc4.05.14.tar.gz

Download the archive   « Back to the archive contents

#pragma strict_types
#pragma save_types
/*
int sqrt(int q)
{
  int a,b,c;
  for(a=0,b=0x10000;a+1<b;)
  {
    c=(a+b)/2;
    if(c*c>q) b=c; else a=c;
  }
  return a;
}

*/

Site Stats

Snippets: 1791
Codebases: 571