gcd.c (178B)
1 int gcd(int x1, int x2) { 2 while (x2 != 0) { 3 int q = x1 / x2; 4 int t = q * x2; 5 int r = x1 - t; 6 x1 = x2; 7 x2 = r; 8 } 9 return x1; 10 } 11
![]() | compilerUnnamed Compiled Systems Language Project |
git clone http://frotz.net/git/compiler.git | |
Log | Files | Refs |