MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gcd

Function gcd

dpdk/lib/eal/windows/getopt.c:61–74  ·  view source on GitHub ↗

* Compute the greatest common divisor of a and b. */

Source from the content-addressed store, hash-verified

59 * Compute the greatest common divisor of a and b.
60 */
61static int
62gcd(int a, int b)
63{
64 int c;
65
66 c = a % b;
67 while (c != 0) {
68 a = b;
69 b = c;
70 c = a % b;
71 }
72
73 return (b);
74}
75
76/*
77 * Exchange the block from nonopt_start to nonopt_end with the block

Callers 1

permute_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected