MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / gcd

Function gcd

samples/common/getopt.c:133–146  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

131 * Compute the greatest common divisor of a and b.
132 */
133static int gcd(int a, int b)
134{
135 int c;
136
137 c = a % b;
138 while (c != 0)
139 {
140 a = b;
141 b = c;
142 c = a % b;
143 }
144
145 return (b);
146}
147
148/*
149 * 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