14 lines
144 B
C
14 lines
144 B
C
#include "ucore/math.h"
|
|
|
|
uint32_t
|
|
uc_gcd_32(uint32_t a, uint32_t b)
|
|
{
|
|
while (b != 0) {
|
|
uint32_t t = b;
|
|
b = a%b;
|
|
a = t;
|
|
}
|
|
|
|
return a;
|
|
}
|