PageRenderTime 25ms CodeModel.GetById 20ms app.highlight 0ms RepoModel.GetById 4ms app.codeStats 0ms

/trunk/Examples/android/simple/jni/example.c

#
C | 17 lines | 11 code | 3 blank | 3 comment | 1 complexity | 9c97555502c1ee9259c5ac5db73af140 MD5 | raw file
 1/* File : example.c */
 2
 3/* A global variable */
 4double Foo = 3.0;
 5
 6/* Compute the greatest common divisor of positive integers */
 7int gcd(int x, int y) {
 8  int g;
 9  g = y;
10  while (x > 0) {
11    g = x;
12    x = y % x;
13    y = g;
14  }
15  return g;
16}
17