Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion mtproto-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
#include "mtproto-utils.h"

static unsigned long long gcd (unsigned long long a, unsigned long long b) {
return b ? gcd (b, a % b) : a;
unsigned long long c;
while (b) {
c = a % b;
a = b;
b = c;
}
return a;
}

static int check_prime (struct tgl_state *TLS, TGLC_bn *p) {
Expand Down